Sunday, January 9, 2022

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

Issue

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?


Solution

try cron.remaining_estimate(datetime.now())



Answered By - Jacky1205