Skip to content

Commit

Permalink
Update docstring to stop sphinx issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWheating committed Nov 24, 2023
1 parent 23ed1e6 commit b47d3bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions airflow/models/taskinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,14 @@ def try_number(self):

@try_number.expression
def try_number(cls):
"""
This is what will be used by SQLAlchemy when filtering on try_number.
This is required because the override in the get_try_number function causes
try_number values to be off by one when listing tasks in the UI.
:meta private:
"""
return cls._try_number

@try_number.setter
Expand Down

0 comments on commit b47d3bd

Please sign in to comment.