Cron style scheduler for asynchronous Dramatiq tasks in Django.
Actively maintained. Last release 5 weeks ago, commits in 24 of the last 26 weeks. A safe choice.
pip install dramatiq-crontabDramatiq Crontab

Cron style scheduler for asynchronous Dramatiq tasks in Django.
- setup recurring tasks via crontab syntax
- lightweight helpers build on robust tools like Dramatiq and APScheduler
- Sentry cron monitor support
Setup
You need to have Dramatiq installed and setup properly.
python3 -m pip install dramatiq-crontab
# or
python3 -m pip install 'dramatiq-crontab[sentry]' # with sentry cron monitor support
Add dramatiq_crontab to your INSTALLED_APPS in settings.py:
# settings.py
INSTALLED_APPS = [
"dramatiq_crontab",
# ...
]
Finally, launch the scheduler in a separate process:
python3 manage.py crontab
Setup Redis as a lock backend (optional)
If you use Redis as a broker, you can use Redis as a lock backend as well. The lock backend is used to prevent multiple instances of the scheduler from running at the same time. This is important if you have multiple instances of your application running.
Install the Redis extra, or combine it with Sentry support:
python3 -m pip install 'dramatiq-crontab[redis]'
# or
python3 -m pip install 'dramatiq-crontab[redis,sentry]'
Then configure the Redis URL:
# settings.py
DRAMATIQ_CRONTAB = {
"REDIS_URL": "redis://localhost:6379/0",
}