Last active
April 10, 2019 21:26
-
-
Save Quard/2d6a3d10004f0390d72ff743916ca42b to your computer and use it in GitHub Desktop.
The Python Celery Cookbook: Small Tool, Big Possibilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from celery.schedules import crontab | |
CELERY_BEAT_SCHEDULE = { | |
'monday-statistics-email': { | |
'task': 'myproject.apps.statistics.tasks.monday_email', | |
'schedule': crontab(day_of_week=1, hour=7), | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment