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 until resume() is called

Raises:

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 until resume() is called

Raises:

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

GeventExecutor

External dependencies

gevent

Example

examples/schedulers/gevent_.py (view online).