Skip to content

Commit 4568983

Browse files
committed
revert stage deepcopy removal
1 parent 0f58986 commit 4568983

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

orquesta/conducting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def serialize(self):
5252
"contexts": self.contexts,
5353
"routes": self.routes,
5454
"sequence": self.sequence,
55-
"staged": self.staged,
55+
"staged": json_util.deepcopy(self.staged),
5656
"status": self.status,
5757
"tasks": self.tasks,
5858
}

orquesta/tests/unit/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def assert_task_list(self, conductor, actual, expected):
217217

218218
for task in expected_copy:
219219
task["ctx"]["__current_task"] = {"id": task["id"], "route": task["route"]}
220-
task["ctx"]["__state"] = copy.deepcopy(conductor.workflow_state.serialize())
220+
task["ctx"]["__state"] = conductor.workflow_state.serialize()
221221

222222
for staged_task in task["ctx"]["__state"]["staged"]:
223223
if "items" in staged_task:

0 commit comments

Comments
 (0)