2

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?

Jony cruse
  • 815
  • 1
  • 13
  • 23
  • Here is a detailed solution, how to check test the schedule: https://stackoverflow.com/questions/49586967/how-to-test-celery-periodic-task-in-django/67597941#67597941 – hendrikschneider May 19 '21 at 11:27

1 Answers1

3

try cron.remaining_estimate(datetime.now())

Jacky1205
  • 3,273
  • 3
  • 22
  • 44
  • 1
    where can we add this line ? I am having trouble finding the file where I should write this to find the remaining estimate. – S.K Sep 01 '20 at 17:08