Jelajahi Sumber

Roll moy over if last_run.moy is past range

Loren Abrams 12 tahun lalu
induk
melakukan
4ac1b2e2c8
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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,