flask-apscheduler

Flask-APScheduler is a Flask extension which adds support for the APScheduler. Advanced Python Scheduler (APScheduler) is a Python library that lets you schedule your Python code to be executed later, either just once or periodically. You can add new jobs or remove old ones on the fly as you please. If you store your jobs in a database, they will also survive scheduler restarts and maintain their state. When the scheduler is restarted, it will then run all the jobs it should have run while it was offline [1]. Among other things, APScheduler can be used as a cross-platform, application specific replacement to platform specific schedulers, such as the cron daemon or the Windows task scheduler. Please note, however, that APScheduler is not a daemon or service itself, nor does it come with any command line tools. It is primarily meant to be run inside existing applications. That said, APScheduler does provide some building blocks for you to build a scheduler service or to run a dedicated scheduler process.


Keywords
apscheduler, cron-jobs, flask, flask-extensions, scheduler
License
Apache-2.0
Install
conda install -c anaconda flask-apscheduler

Documentation

Flask-APScheduler

Flask-APScheduler is a Flask extension which adds support for the APScheduler.

Version Tests Coverage Docs

Features

  • Loads scheduler configuration from Flask configuration.
  • Loads job definitions from Flask configuration.
  • Allows to specify the hostname which the scheduler will run on.
  • Provides a REST API to manage the scheduled jobs.
  • Provides authentication for the REST API.
  • Integrates with Flask Blueprints

Installation

You can install Flask-APScheduler via Python Package Index (PyPI)

pip install Flask-APScheduler

Documentation

See Flask APSchedulers Documentation.

Feedback

Please use the Issues for feature requests and troubleshooting usage.