Skip to main content

In-process task scheduler with Cron-like capabilities

Project description

Build Status Code Coverage Documentation

Advanced Python Scheduler (APScheduler) is a task scheduler and task queue system for Python. It can be used solely as a job queuing system if you have no need for task scheduling. It scales both up and down, and is suitable for both trivial, single-process use cases as well as large deployments spanning multiple nodes. Multiple schedulers and workers can be deployed to use a shared data store to provide both a degree of high availability and horizontal scaling.

APScheduler comes in both synchronous and asynchronous flavors, making it a good fit for both traditional, thread-based applications, and asynchronous (asyncio or Trio) applications. Documentation and examples are provided for integrating with either WSGI or ASGI compatible web applications.

Support is provided for persistent storage of schedules and jobs. This means that they can be shared among multiple scheduler/worker instances and will survive process and node restarts.

The built-in persistent data store back-ends are:

  • PostgreSQL

  • MySQL and derivatives

  • SQLite

  • MongoDB

The built-in event brokers (needed in scenarios with multiple schedulers and/or workers):

  • PostgreSQL

  • Redis

  • MQTT

The built-in scheduling mechanisms (triggers) are:

  • Cron-style scheduling

  • Interval-based scheduling (runs tasks on even intervals)

  • Calendar-based scheduling (runs tasks on intervals of X years/months/weeks/days, always at the same time of day)

  • One-off scheduling (runs a task once, at a specific date/time)

Different scheduling mechanisms can even be combined with so-called combining triggers (see the documentation for details).

You can also implement your custom scheduling logic by building your own trigger class. These will be treated no differently than the built-in ones.

Other notable features include:

  • You can limit the maximum number of simultaneous jobs for a given task (function)

  • You can limit the amount of time a job is allowed to start late

  • Jitter (adjustable, random delays added to the run time of each scheduled job)

Documentation

Documentation can be found here.

Source

The source can be browsed at Github.

Reporting bugs

A bug tracker is provided by GitHub.

Getting help

If you have problems or other questions, you can either:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

APScheduler-4.0.0a4.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

APScheduler-4.0.0a4-py3-none-any.whl (73.9 kB view details)

Uploaded Python 3

File details

Details for the file APScheduler-4.0.0a4.tar.gz.

File metadata

  • Download URL: APScheduler-4.0.0a4.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for APScheduler-4.0.0a4.tar.gz
Algorithm Hash digest
SHA256 c349f281ec505235e1a748b0954d1ab868acefab69815559d62e025686945e65
MD5 9e2535fe6b68c3fbe4c3e911b0beb48e
BLAKE2b-256 6eeb94ab7ada0c5b25243f08de7406f9507a4b2c2b8d97ee61ea990d8500bc2f

See more details on using hashes here.

File details

Details for the file APScheduler-4.0.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for APScheduler-4.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 29576119a82a4e91fbd20971d9225c88b073b8e23a7e6bda5f9d555fa8bcccfc
MD5 0a21f3f8c1b6bbe98428740af88b59aa
BLAKE2b-256 3e7655228b983ff2ce12fad60313f747a2db390681910be6a5e7629401e26625

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page