Browse Source

Merge pull request #2794 from schmiddy/dumpcam-on_shutter-example

Fix  example code demonstrating Custom Camera
Omer Katz 9 năm trước cách đây
mục cha
commit
9130f0a368
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docs/userguide/monitoring.rst

+ 1 - 1
docs/userguide/monitoring.rst

@@ -511,7 +511,7 @@ Here is an example camera, dumping the snapshot to screen:
                 return
             print('Workers: {0}'.format(pformat(state.workers, indent=4)))
             print('Tasks: {0}'.format(pformat(state.tasks, indent=4)))
-            print('Total: {0.event_count} events, %s {0.task_count}'.format(
+            print('Total: {0.event_count} events, {0.task_count} tasks'.format(
                 state))
 
 See the API reference for :mod:`celery.events.state` to read more