浏览代码

Roll moy over if last_run.moy is past range

Loren Abrams 12 年之前
父节点
当前提交
535dd52172
共有 1 个文件被更改,包括 2 次插入0 次删除
  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,