Explorar o código

Forgot to return task_id in _delay_Task

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
4e8efe187f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      celery/messaging.py

+ 1 - 0
celery/messaging.py

@@ -32,6 +32,7 @@ class TaskPublisher(Publisher):
         if part_of_set:
             message_data["celeryTASKSET"] = part_of_set
         self.send(message_data)
+        return task_id
 
 
 class TaskConsumer(NoProcessConsumer):