Class - Task

Class - Task#

class openfl.component.assigner.tasks.Task(name, function_name, task_type, apply_local=False, parameters=<factory>)[source]#

Bases: object

Task base dataclass.

Parameters:
  • name (str) – Name of the task.

  • function_name (str) – Name of the function to be executed for the task.

  • task_type (str) – Type of the task.

  • apply_local (bool, optional) – Whether to apply the task locally. Defaults to False.

  • parameters (dict, optional) – Parameters for the task. Defaults to an empty dictionary.

__init__(name, function_name, task_type, apply_local=False, parameters=<factory>)#
Parameters:
  • name (str)

  • function_name (str)

  • task_type (str)

  • apply_local (bool)

  • parameters (dict)

Return type:

None

Methods

__init__(name, function_name, task_type[, ...])

Attributes

apply_local

name

function_name

task_type

parameters