Skip to content

Commit

Permalink
fix: Ensure group tasks are deeply deserialised
Browse files Browse the repository at this point in the history
Fixes #6341
  • Loading branch information
maybe-sybr committed Sep 16, 2020
1 parent 3ef2d12 commit b8e20c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion celery/canvas.py
Expand Up @@ -1028,8 +1028,9 @@ class group(Signature):

@classmethod
def from_dict(cls, d, app=None):
tasks = [maybe_signature(task) for task in d["kwargs"]["tasks"]]
return _upgrade(
d, group(d['kwargs']['tasks'], app=app, **d['options']),
d, group(tasks, app=app, **d['options']),
)

def __init__(self, *tasks, **options):
Expand Down
1 change: 0 additions & 1 deletion t/unit/tasks/test_canvas.py
Expand Up @@ -633,7 +633,6 @@ def test_from_dict(self):
x['args'] = None
assert group.from_dict(dict(x))

@pytest.mark.xfail(reason="#6341")
def test_from_dict_deep_deserialize(self):
subtask = self.add.s(1, 2)
original_group = group([subtask] * 42)
Expand Down

0 comments on commit b8e20c7

Please sign in to comment.