瀏覽代碼

Redis: new_join does not need to support CHORD_PROPAGATES

Ask Solem 9 年之前
父節點
當前提交
a50bfd8f34
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      celery/backends/redis.py

+ 1 - 4
celery/backends/redis.py

@@ -196,11 +196,8 @@ class RedisBackend(KeyValueStoreBackend):
         options['task_id'] = group_id
         return header(*partial_args, **options or {})
 
-    def _new_chord_return(self, task, state, result, propagate=None,
-                          PROPAGATE_STATES=states.PROPAGATE_STATES):
+    def _new_chord_return(self, task, state, result, propagate=None):
         app = self.app
-        if propagate is None:
-            propagate = self.app.conf.CELERY_CHORD_PROPAGATES
         request = task.request
         tid, gid = request.id, request.group
         if not gid or not tid: