title: How to persist scheduled jobs using APScheduler until they finish completely?
body: <p>I'm using <a href="https://apscheduler.readthedocs.org/en/latest/" rel="nofollow">APScheduler</a> with Python 2.7.6. I'm using <a href="https://apscheduler.readthedocs.org/en/latest/modules/schedulers/blocking.html#apscheduler.schedulers.blocking.BlockingScheduler" rel="nofollow">BlockingScheduler</a> to store scheduled jobs and <a href="http://www.sqlalchemy.org/" rel="nofollow">SQLAlchemy</a> as persistent database.</p>
  
  <p>I want to schedule jobs and guarantee that they finish (function reach last line). Everything is working fine, but I see that when a job is started, it's removed from the database, even when the job did not finish the entire method.</p>
  
  <p>Note: Obviously, I developed jobs that do not have state and can be re-executed in next program executions. This should be not an issue to be discussed in this question.</p>
  
  <p><strong>What is the best way to persist a job until the complete function/method is executed using APScheduler?</strong></p>