Ver Fonte

Fix for example code demonstrating celery events cam.

Josh Kupershmidt há 9 anos atrás
pai
commit
27866e7bd0
1 ficheiros alterados com 1 adições e 1 exclusões
  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