Upgraded APScheduler to 3.0.1. This includes pytz and tzlocal as dependencies.

This commit is contained in:
Bas Stottelaar
2014-10-20 21:33:00 +02:00
parent cf181e1d26
commit 553cc536c0
644 changed files with 8674 additions and 1338 deletions
+19
View File
@@ -0,0 +1,19 @@
import sys
from apscheduler.executors.base import BaseExecutor, run_job
class DebugExecutor(BaseExecutor):
"""
A special executor that executes the target callable directly instead of deferring it to a thread or process.
Plugin alias: ``debug``
"""
def _do_submit_job(self, job, run_times):
try:
events = run_job(job, job._jobstore_alias, run_times, self._logger.name)
except:
self._run_job_error(job.id, *sys.exc_info()[1:])
else:
self._run_job_success(job.id, events)