nvflare.private.fed.client.utils module

determine_parent_fqcn(client_config: dict, fl_ctx: FLContext) str[source]

Determine the FQCN of the parent cell based on client config. This function is used to determine the endpoint for pulling task, submitting task result, etc. in hierarchical client network.

Parameters:
  • client_config – config of the client

  • fl_ctx – FLContext object that contains engine

Returns: the FQCN of the parent cell

determine_parent_name(client_config: dict) str | None[source]

Determine the parent site name from the config of a client.

Parameters:

client_config – the config of client

Returns: the name of parent client or None if the client has no parent