nvflare.app_common.job_launcher.process_launcher module¶
- class ProcessHandle(process)[source]¶
Bases:
JobHandleSpec
- class ProcessJobLauncher[source]¶
Bases:
JobLauncherSpec
Init 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 get_command(job_meta, fl_ctx) str [source]¶
To generate the command to launcher the job in sub-process
- Parameters:
fl_ctx – FLContext
job_meta – job meta data
- Returns:
launch command
- handle_event(event_type: str, fl_ctx: FLContext)[source]¶
Handles events.
- Parameters:
event_type (str) – event type fired by workflow.
fl_ctx (FLContext) – FLContext information.
- launch_job(job_meta: dict, fl_ctx: FLContext) JobHandleSpec [source]¶
To launch a job run.
- Parameters:
job_meta – job meta data
fl_ctx – FLContext
Returns: boolean to indicates the job launch success or fail.