Skip to content

Commit

Permalink
revert stage deepcopy removal
Browse files Browse the repository at this point in the history
  • Loading branch information
guzzijones committed Jul 12, 2023
1 parent 0f58986 commit 4568983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orquesta/conducting.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def serialize(self):
"contexts": self.contexts,
"routes": self.routes,
"sequence": self.sequence,
"staged": self.staged,
"staged": json_util.deepcopy(self.staged),
"status": self.status,
"tasks": self.tasks,
}
Expand Down
2 changes: 1 addition & 1 deletion orquesta/tests/unit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def assert_task_list(self, conductor, actual, expected):

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

for staged_task in task["ctx"]["__state"]["staged"]:
if "items" in staged_task:
Expand Down

0 comments on commit 4568983

Please sign in to comment.