Created
February 8, 2017 16:59
-
-
Save tuxpowered/07bb905cc503dc1cb88d419a53edebec to your computer and use it in GitHub Desktop.
Celery scheduled Task
This file contains hidden or 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.task.schedules import crontab | |
| from celery.decorators import periodic_task | |
| @periodic_task(run_every=crontab(hour=7, minute=30, day_of_week="mon")) | |
| def every_monday_morning(): | |
| print("This runs every Monday morning at 7:30a.m.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment