Ver Fonte

Roll moy over if last_run.moy is past range

Loren Abrams há 12 anos atrás
pai
commit
4ac1b2e2c8
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      celery/schedules.py

+ 2 - 0
celery/schedules.py

@@ -392,6 +392,8 @@ class crontab(schedule):
         else:
             datedata.dom = 0
             datedata.moy = bisect(months_of_year, last_run_at.month)
+            if datedata.moy == len(months_of_year):
+                datedata.moy = 0
         roll_over()
 
         while not (datetime(year=datedata.year,