nvflare.app_common.workflows.cmd_task_controller module

class CmdTaskController(task_name: str = 'cmd_task', *args, **kwargs)[source]

Bases: ModelController

Model Controller API for FLModel-based Controller.

Parameters:

persistor_id (str, optional) – ID of the persistor component. Defaults to AppConstants.DEFAULT_PERSISTOR_ID (“persistor”).

run()[source]

Main run routine for the controller workflow.

send_task_and_wait(task_name, targets, data)[source]