Search code examples
pythondatetimecelerycrontimedelta

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?


Solution

  • try cron.remaining_estimate(datetime.now())