Browse Source

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

Closes #513.  Thanks to zeeshanlakhani.
Ask Solem 13 năm trước cách đây
mục cha
commit
955dbeb760
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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),