TaskDef

class pydelfini.delfini_core.models.task_def.TaskDef(action, deadline, retry, data=Unset, id=Unset, idemkey=Unset, priority=0)[source]

Bases: object

TaskDef model

Parameters:
action
Type:

str

deadline
Type:

Union[datetime.datetime, float]

retry
Type:

List[‘TaskDefRetryItem’]

data
Type:

Union[‘TaskDefDataType4’, List[Any], Unset, float, int, str]

id
Type:

Union[Unset, str]

idemkey
Type:

Union[Unset, str]

priority

Default: 0.

Type:

Union[Unset, int]

Attributes

action

deadline

retry

data

id

idemkey

priority

additional_properties

additional_keys

classmethod from_dict(src_dict)[source]

Create an instance of TaskDef from a dict

Parameters:

src_dict (Dict[str, Any])

Return type:

T

to_dict()[source]

Convert to a dict

Return type:

Dict[str, Any]