简体   繁体   中英

How can I test celery.crontab schedule executes at expected time?

Current crontab settings here:

 crontab(day_of_month=2, hour=2, minute=0)

But I can't figure out how this schedule will be correctly executed on code. Are there any way to test celery crontab schedule?

尝试cron.remaining_estimate(datetime.now())

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM