소스 검색

Fixes inspect scheduled command #829

Mher Movsisyan 13 년 전
부모
커밋
9bc547cb57
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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."""