Explorar o código

[-> 2.3] event dumper did not handle task-sent well

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
2501f93ec6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/events/dumper.py

+ 1 - 1
celery/events/dumper.py

@@ -30,7 +30,7 @@ class Dumper(object):
         hostname = event.pop("hostname")
         if type.startswith("task-"):
             uuid = event.pop("uuid")
-            if type.startswith("task-received"):
+            if type in ("task-received", "task-sent"):
                 task = TASK_NAMES[uuid] = "%s(%s) args=%s kwargs=%s" % (
                         event.pop("name"), uuid,
                         event.pop("args"),