nvflare.ha.ha_admin_cmds module

class HACommandModule(overseer_agent: OverseerAgent)[source]

Bases: CommandModule

Command module with commands for management in relation to the high availability framework.

get_active_sp(args, ctx: CommandContext)[source]
get_spec()[source]
list_sp(args, ctx: CommandContext)[source]

Lists service provider information based on the last heartbeat from the overseer.

Details are used for displaying the response in the CLI, and data is the data in a dict that is provided in FLAdminAPI.

promote_sp(args, ctx: CommandContext)[source]
shutdown_system(args, ctx: CommandContext)[source]