apscheduler.executors.base
- class apscheduler.executors.base.BaseExecutor
Bases:
object
Abstract base class that defines the interface that every executor must implement.
- shutdown(wait=True)
Shuts down this executor.
- Parameters:
wait (bool) –
True
to wait until all submitted jobs have been executed
- start(scheduler, alias)
Called by the scheduler when the scheduler is being started or when the executor is being added to an already running scheduler.
- Parameters:
scheduler (apscheduler.schedulers.base.BaseScheduler) – the scheduler that is starting this executor
alias (str|unicode) – alias of this executor as it was assigned to the scheduler
- submit_job(job, run_times)
Submits job for execution.
- Parameters:
- Raises:
MaxInstancesReachedError – if the maximum number of allowed instances for this job has been reached
- async apscheduler.executors.base.run_coroutine_job(job, jobstore_alias, run_times, logger_name)
Coroutine version of run_job().
- apscheduler.executors.base.run_job(job, jobstore_alias, run_times, logger_name)
Called by executors to run the job. Returns a list of scheduler events to be dispatched by the scheduler.
Module Contents
- class apscheduler.executors.base.BaseExecutor
Bases:
object
Abstract base class that defines the interface that every executor must implement.
- shutdown(wait=True)
Shuts down this executor.
- Parameters:
wait (bool) –
True
to wait until all submitted jobs have been executed
- start(scheduler, alias)
Called by the scheduler when the scheduler is being started or when the executor is being added to an already running scheduler.
- Parameters:
scheduler (apscheduler.schedulers.base.BaseScheduler) – the scheduler that is starting this executor
alias (str|unicode) – alias of this executor as it was assigned to the scheduler
- submit_job(job, run_times)
Submits job for execution.
- Parameters:
- Raises:
MaxInstancesReachedError – if the maximum number of allowed instances for this job has been reached