apscheduler.executors.base

Module Contents

class apscheduler.executors.base.BaseExecutor

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
submit_job(job, run_times)

Submits job for execution.

Parameters
  • job (Job) – job to execute

  • run_times (list[datetime]) – list of datetimes specifying when the job should have been run

Raises

MaxInstancesReachedError – if the maximum number of allowed instances for this job has been reached