浏览代码

crontab.is_due should return schedstate

Ask Solem 11 年之前
父节点
当前提交
1036abc050
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/schedules.py

+ 1 - 1
celery/schedules.py

@@ -540,7 +540,7 @@ class crontab(schedule):
         if due:
             rem_delta = self.remaining_estimate(self.now())
             rem = timedelta_seconds(rem_delta)
-        return due, rem
+        return schedstate(due, rem)
 
     def __eq__(self, other):
         if isinstance(other, crontab):