Cron style scheduler for asynchronous Dramatiq tasks in Django.
Project description
Dramatiq 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 monitor support
Setup
python3 -m pip install dramatiq-crontab
# or
python3 -m pip install dramatiq-crontab[django] # with django support
# or
python3 -m pip install dramatiq-crontab[sentry] # with sentry support
If you use Django:
# settings.py
INSTALLED_APPS = [
'dramatiq_crontab',
# ...
]
Usage
# tasks.py
import dramatiq
from dramatiq_crontab import cron
@cron("*/5 * * * *") # every 5 minutes
@dramatiq.actor
def my_task():
my_task.logger.info("Hello World")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dramatiq_crontab-1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4c98a1071e8e6c9c54c50af6f8b08ac49ec40b0fabf65e8f5e3656bdcd7502e |
|
MD5 | 53723ad6d5229c6446f7860b5ca4b505 |
|
BLAKE2b-256 | f904a082bfc6fdf31dcc86a0c224ae03d2b1d1cf823e6c9236f3f938e30aee2a |