apscheduler.schedulers.gevent
- class apscheduler.schedulers.gevent.GeventScheduler(gconfig={}, **options)
Bases:
BlockingScheduler
A scheduler that runs as a Gevent greenlet.
- shutdown(*args, **kwargs)
Shuts down the scheduler, along with its executors and job stores.
Does not interrupt any currently running jobs.
- Parameters:
wait (bool) –
True
to wait until all currently executing jobs have finished- Raises:
SchedulerNotRunningError – if the scheduler has not been started yet
- start(*args, **kwargs)
Start the configured executors and job stores and begin processing scheduled jobs.
- Parameters:
paused (bool) – if
True
, don’t start job processing untilresume()
is called- Raises:
SchedulerAlreadyRunningError – if the scheduler is already running
RuntimeError – if running under uWSGI with threads disabled
API
- class apscheduler.schedulers.gevent.GeventScheduler(gconfig={}, **options)
Bases:
BlockingScheduler
A scheduler that runs as a Gevent greenlet.
- shutdown(*args, **kwargs)
Shuts down the scheduler, along with its executors and job stores.
Does not interrupt any currently running jobs.
- Parameters:
wait (bool) –
True
to wait until all currently executing jobs have finished- Raises:
SchedulerNotRunningError – if the scheduler has not been started yet
- start(*args, **kwargs)
Start the configured executors and job stores and begin processing scheduled jobs.
- Parameters:
paused (bool) – if
True
, don’t start job processing untilresume()
is called- Raises:
SchedulerAlreadyRunningError – if the scheduler is already running
RuntimeError – if running under uWSGI with threads disabled
Introduction
GeventScheduler was meant to be used with applications that use gevent. GeventScheduler uses gevent natively, so it doesn’t require monkey patching. By default it executes jobs as greenlets.
Default executor |
|
External dependencies |
|
Example |
|