apscheduler.schedulers.asyncio

API

class apscheduler.schedulers.asyncio.AsyncIOScheduler(gconfig={}, **options)

Bases: apscheduler.schedulers.base.BaseScheduler

A scheduler that runs on an asyncio (PEP 3156) event loop.

The default executor can run jobs based on native coroutines (async def).

Extra options:

event_loop AsyncIO event loop to use (defaults to the global event loop)

Introduction

AsyncIOScheduler was meant to be used with the AsyncIO event loop. By default, it will run jobs in the event loop’s thread pool.

If you have an application that runs on an AsyncIO event loop, you will want to use this scheduler.

Default executor AsyncIOExecutor
External dependencies
Example examples/schedulers/asyncio_.py (view online).