Jelajahi Sumber

beat: Scheduler: Document lazy argument. Closes #1549

Ask Solem 11 tahun lalu
induk
melakukan
c1978603f6
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  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