Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions airflow/models/taskinstancekey.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ def primary(self) -> tuple[str, str, str, int]:
"""Return task instance primary key part of the key."""
return self.dag_id, self.task_id, self.run_id, self.map_index

@property
def reduced(self) -> TaskInstanceKey:
"""Remake the key by subtracting 1 from try number to match in memory information."""
# todo (dstandish): remove this property
return TaskInstanceKey(
self.dag_id, self.task_id, self.run_id, max(1, self.try_number - 1), self.map_index
)

def with_try_number(self, try_number: int) -> TaskInstanceKey:
"""Return TaskInstanceKey with provided ``try_number``."""
return TaskInstanceKey(self.dag_id, self.task_id, self.run_id, try_number, self.map_index)
Expand Down