nvflare.edge.widgets.etd module

class EdgeTaskDispatcher(request_timeout: float = 5.0)[source]

Bases: Widget

Edge Task Dispatcher (ETD) is to be used to dispatch a received edge request to a running job (CJ). ETD must be installed on CP (local/resources.json) before the CP is started.

Note: ETD does not interact with edge devices directly. It’s another component’s responsibility (e.g. web agent) to interact with edge devices with whatever protocol between them.

ETD indirectly interacts with edge-device-interacting component (also installed on the CP) via Flare Events:

EdgeEventType.EDGE_JOB_REQUEST_RECEIVED for receiving job requests; EdgeEventType.EDGE_TASK_REQUEST_RECEIVED for receiving task requests; EdgeEventType.EDGE_SELECTION_REQUEST_RECEIVED for receiving selection requests; EdgeEventType.EDGE_RESULT_REPORT_RECEIVED for receiving result reports;

Init the Widget.