nvflare.app_common.abstract.launcher module¶
- class Launcher[source]¶
Bases:
FLComponent,ABCInit FLComponent.
The FLComponent is the base class of all FL Components. (executors, controllers, responders, filters, aggregators, and widgets are all FLComponents)
FLComponents have the capability to handle and fire events and contain various methods for logging.
- abstract check_run_status(task_name: str, fl_ctx: FLContext) str[source]¶
Checks the run status of Launcher.
- abstract launch_task(task_name: str, shareable: Shareable, fl_ctx: FLContext, abort_signal: Signal) bool[source]¶
Launches external system to handle a task.
- Parameters:
task_name (str) – task name.
shareable (Shareable) – input shareable.
fl_ctx (FLContext) – fl context.
abort_signal (Signal) – signal to check during execution to determine whether this task is aborted.
- Returns:
Whether launch success or not.