nvflare.app_opt.job_launcher.slurm package
Submodules
- nvflare.app_opt.job_launcher.slurm.batch module
- nvflare.app_opt.job_launcher.slurm.config module
BindMountCommandResultJobResourcesLaunchPlanLaunchPlan.directivesLaunchPlan.exe_moduleLaunchPlan.forward_envLaunchPlan.imageLaunchPlan.job_idLaunchPlan.module_argsLaunchPlan.mountsLaunchPlan.python_envLaunchPlan.python_pathLaunchPlan.resourcesLaunchPlan.run_dirLaunchPlan.sandboxLaunchPlan.setupLaunchPlan.site_nameLaunchPlan.study_envLaunchPlan.study_secret_env
LookupStatusQueryResultSlurmConfigSlurmLauncherErrorSlurmProtocolErrorSlurmRecordSubmissionResultnormalize_slurm_directives()normalize_slurm_executables()normalize_slurm_image()normalize_slurm_launcher_settings()normalize_slurm_workspace_path()resolve_slurm_parent_executables()
- nvflare.app_opt.job_launcher.slurm.launcher module
- nvflare.app_opt.job_launcher.slurm.manager module
- nvflare.app_opt.job_launcher.slurm.scheduler_client module
Module contents
Slurm job-launcher backend.
- class ClientSlurmJobLauncher(*, workspace_path: str, sandbox: str, python_path: str, executables: dict, image: str | None = None, internal_port: int = 8102, sbatch_directives: dict | None = None, setup: str = '', forward_env: list | None = None, parent_host: str | None = None, poll_interval: float = 10.0, pending_timeout: float = 600.0)[source]
Bases:
SlurmJobLauncherInit 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.
- EXE_MODULE: str | None = 'nvflare.private.fed.app.client.worker_process'
- class ServerSlurmJobLauncher(*, workspace_path: str, sandbox: str, python_path: str, executables: dict, image: str | None = None, internal_port: int = 8102, sbatch_directives: dict | None = None, setup: str = '', forward_env: list | None = None, parent_host: str | None = None, poll_interval: float = 10.0, pending_timeout: float = 600.0)[source]
Bases:
SlurmJobLauncherInit 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.
- EXE_MODULE: str | None = 'nvflare.private.fed.app.server.runner_process'
- class SlurmJobLauncher(*, workspace_path: str, sandbox: str, python_path: str, executables: dict, image: str | None = None, internal_port: int = 8102, sbatch_directives: dict | None = None, setup: str = '', forward_env: list | None = None, parent_host: str | None = None, poll_interval: float = 10.0, pending_timeout: float = 600.0)[source]
Bases:
JobLauncherSpecCommon lifecycle and launch-plan construction for client and server jobs.
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.
- EXE_MODULE: str | None = None
- abstract get_module_args(job_args: dict) tuple[source]
Select and structure the worker arguments for this launcher type.
- 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 metadata
fl_ctx – FLContext
Returns: a JobHandle instance.