uranusjr commented on code in PR #24912:
URL: https://github.com/apache/airflow/pull/24912#discussion_r916534930
##########
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:
It wouldn’t work, and honestly I don’t even know what `None` means here. I
think this is exposing a more fundamental bug…
--
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]