nvflare.app_common.widgets.convert_to_fed_event module

class ConvertToFedEvent(events_to_convert: List[str], fed_event_prefix='fed.')[source]

Bases: Widget

Converts local event to federated events.

  • events_to_convert (List[str]) – A list of event names to be converted.

  • fed_event_prefix (str) – The prefix that will be added to the converted event’s name.

handle_event(event_type: str, fl_ctx: FLContext)[source]

Handles events.

  • event_type (str) – event type fired by workflow.

  • fl_ctx (FLContext) – FLContext information.