Explorar el Código

Roll moy over if last_run.moy is past range

Loren Abrams hace 12 años
padre
commit
4ac1b2e2c8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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,