Skip to content

Commit

Permalink
More fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Feb 19, 2024
1 parent 42aaa31 commit 6d339c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/engine/src/core/workflows/WorkflowExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ def _start_task(self, task):
self.state.ctx.logger.info(self.t_str(task, "FAILED"))
self.publish(Event(TASK_FAILED, self.state.ctx, task=task))
# Get the next queued tasks if any
unstarted_threads = self._on_task_terminal_state(task, task_result)
unstarted_threads = self._on_task_terminal_state(
task,
TaskResult(1, errors=[str(e)])
)

# NOTE Triggers hook _on_change_ready_task
self.state.ready_tasks += unstarted_threads
Expand Down

0 comments on commit 6d339c3

Please sign in to comment.