Преглед на файлове

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