فهرست منبع

beat: Scheduler: Document lazy argument. Closes #1549

Ask Solem 11 سال پیش
والد
کامیت
c1978603f6
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      celery/beat.py

+ 6 - 0
celery/beat.py

@@ -135,8 +135,14 @@ class ScheduleEntry(object):
 class Scheduler(object):
     """Scheduler for periodic tasks.
 
+    The :program:`celery beat` program may instantiate this class
+    multiple times for introspection purposes, but then with the
+    ``lazy`` argument set.  It is important for subclasses to
+    be idempotent when this argument is set.
+
     :keyword schedule: see :attr:`schedule`.
     :keyword max_interval: see :attr:`max_interval`.
+    :keyword lazy: Do not set up the schedule.
 
     """
     Entry = ScheduleEntry