Browse Source

Fix identation

Ask Solem 12 years ago
parent
commit
7044d562e1
2 changed files with 4 additions and 2 deletions
  1. 2 0
      Changelog
  2. 2 2
      celery/app/builtins.py

+ 2 - 0
Changelog

@@ -47,6 +47,8 @@ If you're looking for versions prior to 3.x you should see :ref:`history`.
     previous invocation.  This is now fixed, so that calling a subtask
     won't mutate any options.
 
+- Canvas: Chaining a chord to another task now works.
+
 - Worker: Fixed a bug where the request stack could be corrupted if
   relative imports are used.
 

+ 2 - 2
celery/app/builtins.py

@@ -214,8 +214,8 @@ def add_chain_task(app):
                         next_step = steps.popleft()
                     except IndexError:
                         next_step = None
-                if next_step is not None:
-                    task = chord(task, body=next_step, task_id=tid)
+                    if next_step is not None:
+                        task = chord(task, body=next_step, task_id=tid)
                 if prev_task:
                     # link previous task to this task.
                     prev_task.link(task)