Skip to content

Commit

Permalink
handle launcher monitoring failure condition (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterxgchen authored Dec 21, 2023
1 parent d67baf4 commit 2ad8da2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nvflare/app_common/executors/launcher_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ def _monitor_launcher(self, fl_ctx: FLContext):
f"launcher completed {task_name} with status {run_status} at time {self._launcher_finish_time}",
)

if run_status == LauncherRunStatus.COMPLETE_FAILED:
msg = f"Launcher failed with at time {self._launcher_finish_time} "
self._abort_signal.trigger(msg)
break

if not self._launcher_finish:
continue

Expand Down

0 comments on commit 2ad8da2

Please sign in to comment.