Przeglądaj źródła

crontab.is_due should return schedstate

Ask Solem 11 lat temu
rodzic
commit
1036abc050
1 zmienionych plików z 1 dodań i 1 usunięć
  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):