소스 검색

TaskPublisher: Only send the 'chord' key if provided for message compatibility.

Ask Solem 14 년 전
부모
커밋
932a045612
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      celery/app/amqp.py

+ 3 - 2
celery/app/amqp.py

@@ -221,11 +221,12 @@ class TaskPublisher(messaging.Publisher):
                 "kwargs": task_kwargs or {},
                 "retries": retries or 0,
                 "eta": eta,
-                "expires": expires,
-                "chord": chord}
+                "expires": expires}
 
         if taskset_id:
             body["taskset"] = taskset_id
+        if chord:
+        	body["chord"] = chord
 
         send = self.send
         if retry is None and self.retry or retry: