/opt/imh-python/lib/python3.9/site-packages/apscheduler/executors
NameSizeModeActions
__pycache__/-0755rm
asyncio.py17680644editdlrm
base.py71160644editdlrm
debug.py5730644editdlrm
gevent.py7610644editdlrm
pool.py26830644editdlrm
tornado.py15810644editdlrm
twisted.py7260644editdlrm
__init__.py00644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/apscheduler/executors/twisted.py (726B)
from apscheduler.executors.base import BaseExecutor, run_job class TwistedExecutor(BaseExecutor): """ Runs jobs in the reactor's thread pool. Plugin alias: ``twisted`` """ def start(self, scheduler, alias): super().start(scheduler, alias) self._reactor = scheduler._reactor def _do_submit_job(self, job, run_times): def callback(success, result): if success: self._run_job_success(job.id, result) else: self._run_job_error(job.id, result.value, result.tb) self._reactor.getThreadPool().callInThreadWithCallback( callback, run_job, job, job._jobstore_alias, run_times, self._logger.name )