Procházet zdrojové kódy

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

Closes #513.  Thanks to zeeshanlakhani.
Ask Solem před 13 roky
rodič
revize
955dbeb760
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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),