Explorar o código

[canvas] group | task now upgrades to chord early (Issue #2922)

Ask Solem %!s(int64=9) %!d(string=hai) anos
pai
achega
fe60cab15a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      celery/canvas.py

+ 2 - 0
celery/canvas.py

@@ -295,6 +295,8 @@ class Signature(dict):
     def __or__(self, other):
         if isinstance(other, group):
             other = maybe_unroll_group(other)
+        if isinstance(self, group):
+            return chord(self, body=other, app=self._app)
         if not isinstance(self, chain) and isinstance(other, chain):
             return chain((self,) + other.tasks, app=self._app)
         elif isinstance(other, chain):