Skip to content

TaskConfig class

Bases: Section

Configuration fields needed to instantiate an actual Task.

Attributes

function instance-attribute

function: Optional[Callable] = function

User function taking as inputs some parameters compatible with the data type (exposed_type field) of the input data nodes and returning results compatible with the data type (exposed_type field) of the outputs list.

id instance-attribute

id: str = _validate_id(id)

A valid python identifier that uniquely identifies the section.

input_configs property

input_configs: List[DataNodeConfig]

The list of the input data node configurations.

inputs property

inputs: List[DataNodeConfig]

The list of the input data node configurations.

output_configs property

output_configs: List[DataNodeConfig]

The list of the output data node configurations.

outputs property

outputs: List[DataNodeConfig]

The list of the output data node configurations.

properties property writable

properties

A dictionary of additional properties.

skippable property

skippable: bool

Indicates if the task can be skipped if no change has been made on inputs.

Methods

default_config() classmethod

default_config() -> TaskConfig

Get the default task configuration.

Returns:

Type Description
TaskConfig

The default task configuration.