scheduler.scheduler module

Scheduler for executing jobs in background

The scheduler is unique and should not export to other modules. This module is no longer a exposed interface, use other modules instead.

scheduler.scheduler.scheduler

The scheduler instance, treat it as a BackgroundScheduler

Type:

BackgroundScheduler

scheduler.scheduler.logger

Logger for scheduler

Type:

Logger

class scheduler.scheduler.Scheduler(scheduler: BackgroundScheduler, retry_times: int = 3)[源代码]

基类:object

A wrapper around BackgroundScheduler

It won't execute the job. When adding the job to database, also try to wakeup the executor

connect_remote() bool[源代码]
log_network_err(exc)[源代码]
wakeup_executor()[源代码]
scheduler.scheduler.start_scheduler() BackgroundScheduler[源代码]

Return a background scheduler that can add job to database, but not actually run the job.