Browse Source

Roll moy over if last_run.moy is past range

Loren Abrams 12 years ago
parent
commit
535dd52172
1 changed files with 2 additions and 0 deletions
  1. 2 0
      celery/schedules.py

+ 2 - 0
celery/schedules.py

@@ -397,6 +397,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,