dstandish commented on code in PR #39336:
URL: https://github.com/apache/airflow/pull/39336#discussion_r1586872663
##########
airflow/models/taskinstance.py:
##########
@@ -280,14 +280,13 @@ def clear_task_instances(
ti.refresh_from_task(task)
if TYPE_CHECKING:
assert ti.task
- task_retries = task.retries
- ti.max_tries = ti.try_number + task_retries - 1
Review Comment:
we no longer subtract 1 here because we're no longer _adding_ 1 when task is
not running. i assume this old logic would give the wrong result if task was
running.....
--
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]