Explorar o código

Merge branch 'master' of github.com:celery/celery

Ask Solem %!s(int64=13) %!d(string=hai) anos
pai
achega
4c5467f6ee
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      celery/utils/timer2.py

+ 4 - 0
celery/utils/timer2.py

@@ -157,6 +157,10 @@ class Schedule(object):
         tref._last_run = None
         return self.enter_after(msecs, tref, priority)
 
+    @property
+    def schedule(self):
+        return self
+
     def __iter__(self):
         """The iterator yields the time to sleep for between runs."""