flip.nvflare.components.flip_server_event_handler

Classes

ServerEventHandler

ServerEventHandler is a generic component that handles system events triggered by nvflare

Module Contents

class flip.nvflare.components.flip_server_event_handler.ServerEventHandler(model_id: str = '', validation_json_generator_id: str = 'json_generator', persist_and_cleanup_id: str = 'persist_and_cleanup', flip: flip.FLIP = FLIP())[source]

Bases: nvflare.apis.fl_component.FLComponent

ServerEventHandler is a generic component that handles system events triggered by nvflare or custom flip events. It executes logic inside its own event handler but may also call other component’s event handlers directly to overcome the non-deterministic order in which nvflare handles events i.e handling ValidationJsonGenerator component events.

Parameters:
  • model_id (string, not required)

  • validation_json_generator_id (string, not required)

  • persist_and_cleanup_id (string, not required)

  • flip (object, not required)

Raises:

ValueError – when model ID is not a valid UUID

model_id = ''[source]
validation_json_generator_id = 'json_generator'[source]
validation_json_generator = None[source]
persist_and_cleanup_id = 'persist_and_cleanup'[source]
persist_and_cleanup = None[source]
flip[source]
fatal_error = False[source]
final_status = None[source]
handle_event(event_type: str, fl_ctx: nvflare.apis.fl_context.FLContext)[source]