瀏覽代碼

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

Closes #513.  Thanks to zeeshanlakhani.
Ask Solem 13 年之前
父節點
當前提交
955dbeb760
共有 1 個文件被更改,包括 1 次插入1 次删除
  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),