nvflare.ha.overseer_agent module

class HttpOverseerAgent(role, overseer_end_point, project, name: str, fl_port: str = '', admin_port: str = '', heartbeat_interval=5)[source]

Bases: OverseerAgent

end()[source]
get_primary_sp() SP[source]

Return current primary service provider.

If primary sp not available, such as not reported by SD, connection to SD not established yet the name and ports will be empty strings.

is_shutdown() bool[source]

Return whether the agent receives a shutdown request.

pause()[source]
promote_sp(sp_end_point, headers=None) Response[source]
resume()[source]
set_secure_context(ca_path: str, cert_path: str = '', prv_key_path: str = '')[source]
set_state(state) Response[source]
start(update_callback=None, conditional_cb=False)[source]