jedcunningham commented on code in PR #24912:
URL: https://github.com/apache/airflow/pull/24912#discussion_r916469538
##########
airflow/models/taskinstance.py:
##########
@@ -197,7 +199,7 @@ def clear_task_instances(
if dag and dag.has_task(task_id):
task = dag.get_task(task_id)
ti.refresh_from_task(task)
- task_retries = task.retries
+ task_retries = task.retries or 0
Review Comment:
I also had to add this, as `task.retries` is `Optional[int]`. Not sure it
would have worked if it was None, but I'll look closer tomorrow.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]