Skip to content

Commit

Permalink
bugfix: 修复快照回滚时反序列化的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuaikang committed Nov 20, 2023
1 parent 93056aa commit ea4fdfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/bamboo-pipeline/pipeline/contrib/rollback/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def execute_rollback(self):
node_snapshots = RollbackNodeSnapshot.objects.filter(node_id=self.node_id, rolled_back=False).order_by("-id")
for node_snapshot in node_snapshots:
service = self.runtime.get_service(code=node_snapshot.code, version=node_snapshot.version)
data = ExecutionData(inputs=json.loads(node_snapshot.inputs), outputs=json.loads(node_snapshot.outputs))
parent_data = ExecutionData(inputs=json.loads(node_snapshot.context_values), outputs={})
data = ExecutionData(inputs=node_snapshot.inputs, outputs=node_snapshot.outputs)
parent_data = ExecutionData(inputs=node_snapshot.context_values, outputs={})
result = service.service.rollback(data, parent_data, self.retry_data)
node_snapshot.rolled_back = True
node_snapshot.save()
Expand Down

0 comments on commit ea4fdfd

Please sign in to comment.