Browse Source

crontab.is_due should return schedstate

Ask Solem 11 năm trước cách đây
mục cha
commit
1036abc050
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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):