Skip to main content

Cron style scheduler for asynchronous Dramatiq tasks in Django.

Project description

Dramatiq Crontab

dramtiq-crontab logo: person in front of a schedule

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

PyPi Version Test Coverage GitHub License

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


Download files

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

Source Distribution

dramatiq-crontab-1.0rc1.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

dramatiq_crontab-1.0rc1-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

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