Explorar o código

crontab.is_due should return schedstate

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
1036abc050
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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):