Skip to content

Commit

Permalink
fix static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWheating committed Nov 24, 2023
1 parent 9db190c commit 23ed1e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion airflow/models/taskinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ def try_number(self):
This is designed so that task logs end up in the right file.
"""
return _get_try_number(task_instance=self)

@try_number.expression
def try_number(cls):
return cls._try_number
Expand Down
5 changes: 1 addition & 4 deletions airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5508,10 +5508,7 @@ class TaskInstanceModelView(AirflowModelView):
"queued_by_job_id",
]

label_columns = {
"dag_run.execution_date": "Logical Date",
"prev_attempted_tries": "Try Number"
}
label_columns = {"dag_run.execution_date": "Logical Date", "prev_attempted_tries": "Try Number"}

search_columns = [
"state",
Expand Down

0 comments on commit 23ed1e6

Please sign in to comment.