Browse Source

crontab.is_due should return schedstate

Ask Solem 11 years ago
parent
commit
1036abc050
1 changed files with 1 additions and 1 deletions
  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):