airflow.models.taskinstancekey

Classes

TaskInstanceKey

Key used to identify task instance.

Module Contents

class airflow.models.taskinstancekey.TaskInstanceKey[source]

Bases: NamedTuple

Key used to identify task instance.

dag_id: str[source]
task_id: str[source]
run_id: str[source]
try_number: int = 1[source]
map_index: int = -1[source]
property primary: tuple[str, str, str, int][source]

Return task instance primary key part of the key.

with_try_number(try_number)[source]

Return TaskInstanceKey with provided try_number.

property key: TaskInstanceKey[source]

For API-compatibly with TaskInstance.

Returns self

classmethod from_dict(dictionary)[source]

Create TaskInstanceKey from dictionary.

Was this entry helpful?