Jelajahi Sumber

Evaluate list

Ask Solem 12 tahun lalu
induk
melakukan
41b7e5d574
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      celery/app/builtins.py

+ 1 - 1
celery/app/builtins.py

@@ -277,7 +277,7 @@ def add_chord_task(app):
 
             # - convert back to group if serialized
             tasks = header.tasks if isinstance(header, group) else header
-            header = group(maybe_subtask(s).clone() for s in tasks)
+            header = group([maybe_subtask(s).clone() for s in tasks])
             # - eager applies the group inline
             if eager:
                 return header.apply(args=partial_args, task_id=group_id)