How can I schedule a Task to execute at a specific time using celery?
问题 I've looked into PeriodicTask , but the examples only cover making it recur. I'm looking for something more like cron 's ability to say "execute this task every Monday at 1 a.m." 回答1: The recently released version 1.0.3 supports this now, thanks to Patrick Altman! Example: 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