Browse Source

Canvas: group | group is now a chord

Ask Solem 10 years ago
parent
commit
898affcf96
1 changed files with 1 additions and 2 deletions
  1. 1 2
      celery/canvas.py

+ 1 - 2
celery/canvas.py

@@ -436,8 +436,7 @@ class chain(Signature):
                 # splice the chain
                 steps.extendleft(reversed(task.tasks))
                 continue
-            elif isinstance(task, group) and steps and \
-                    not isinstance(steps[0], group):
+            elif isinstance(task, group) and steps:
                 # automatically upgrade group(...) | s to chord(group, s)
                 try:
                     next_step = steps.popleft()