Pārlūkot izejas kodu

Snapshot example should enable clear_after to match description. Closes #2962

Ask Solem 9 gadi atpakaļ
vecāks
revīzija
509ed75f96
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      docs/userguide/monitoring.rst

+ 1 - 0
docs/userguide/monitoring.rst

@@ -504,6 +504,7 @@ Here is an example camera, dumping the snapshot to screen:
     from celery.events.snapshot import Polaroid
 
     class DumpCam(Polaroid):
+        clear_after = True  # clear after flush (incl, state.event_count).
 
         def on_shutter(self, state):
             if not state.event_count: