Mher Movsisyan 12 éve
szülő
commit
7b66e2717c
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      celery/worker/state.py
  2. 1 1
      docs/userguide/application.rst

+ 1 - 1
celery/worker/state.py

@@ -40,7 +40,7 @@ reserved_requests = set()
 active_requests = set()
 
 #: count of tasks executed by the worker, sorted by type.
-total_count = defaultdict(lambda: 0)
+total_count = defaultdict(int)
 
 #: the list of currently revoked tasks.  Persistent if statedb set.
 revoked = LimitedSet(maxlen=REVOKES_MAX, expires=REVOKE_EXPIRES)

+ 1 - 1
docs/userguide/application.rst

@@ -274,7 +274,7 @@ you use the task, or access an attribute (in this case :meth:`repr`):
     >>> add.__evaluated__()
     True
 
-*Finalization* of the ampq happens either explicitly by calling
+*Finalization* of the amqp happens either explicitly by calling
 :meth:`@Celery.finalize` -- or implicitly by accessing the :attr:`~@Celery.tasks`
 attribute.