nvflare.widgets.fed_event module¶
- class ClientFedEventRunner(topic='fed.event')[source]¶
Bases:
FedEventRunnerInit ClientFedEventRunner.
- class FedEventRunner(topic='fed.event', regular_interval=0.01, grace_period=2.0, queue_empty_period=2.0)[source]¶
Bases:
WidgetInit FedEventRunner.
The FedEventRunner handles posting and receiving of fed events. The system will do its best to fire off all events in the queue before shutdown using the ABOUT_TO_END_RUN event and a grace period during END_RUN.
- Parameters:
topic – the fed event topic to be handled. Defaults to ‘fed.event’