nvflare.app_common.hub.hub_app_deployer module

class HubAppDeployer[source]

Bases: AppDeployerSpec, FLComponent

HUB_CLIENT_CONFIG_TEMPLATES = ['hub_client.json', 't1_config_fed_client.json']
HUB_CLIENT_CONFIG_TEMPLATE_NAME = 'hub_client.json'
HUB_SERVER_CONFIG_TEMPLATES = ['hub_server.json', 't2_server_components.json']
HUB_SERVER_CONFIG_TEMPLATE_NAME = 'hub_server.json'
OLD_HUB_CLIENT_CONFIG_TEMPLATE_NAME = 't1_config_fed_client.json'
OLD_HUB_SERVER_CONFIG_TEMPLATE_NAME = 't2_server_components.json'
deploy(workspace: Workspace, job_id: str, job_meta: dict, app_name: str, app_data: bytes, fl_ctx: FLContext) str[source]
prepare(fl_ctx: ~nvflare.apis.fl_context.FLContext, workspace: ~nvflare.apis.workspace.Workspace, job_id: str, remove_tmp_t2_dir: bool = True) -> (<class 'str'>, <class 'dict'>, <class 'bytes'>)[source]

Prepare T2 job

Parameters:
  • fl_ctx

  • workspace

  • job_id

  • remove_tmp_t2_dir

Returns: error str if any, meta dict, and job bytes to be submitted to T2 store