Browse Source

TaskSet must ensure task lists are subtasks, not dict after serialization.

Closes #513.  Thanks to zeeshanlakhani.
Ask Solem 13 years ago
parent
commit
955dbeb760
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/task/sets.py

+ 1 - 1
celery/task/sets.py

@@ -139,7 +139,7 @@ class TaskSet(UserList):
         self.app = app_or_default(app)
         if task is not None:
             if hasattr(task, "__iter__"):
-                tasks = task
+                tasks = [subtask(t) for t in task]
             else:
                 # Previously TaskSet only supported applying one kind of task.
                 # the signature then was TaskSet(task, arglist),