Skip to content

Commit f465398

Browse files
author
Alan Christie
committed
fix: Fix workflow failure handling
1 parent 6302855 commit f465398

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

workflow/workflow_engine.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _handle_pod_message(self, msg: PodMessage) -> None:
167167
response = self._api_adapter.get_workflow(workflow_id=workflow_id)
168168
workflow = response["workflow"]
169169

170-
end_of_workflow: bool = False
170+
end_of_workflow: bool = True
171171
if success:
172172
# Given the step for the instance just finished,
173173
# find the next step in the workflow and launch it.
@@ -195,9 +195,8 @@ def _handle_pod_message(self, msg: PodMessage) -> None:
195195
workflow_definition=workflow,
196196
step_specification=step_specification,
197197
)
198+
end_of_workflow = False
198199
break
199-
else:
200-
end_of_workflow = True
201200

202201
if end_of_workflow:
203202
self._api_adapter.set_running_workflow_done(

0 commit comments

Comments
 (0)