uranusjr commented on a change in pull request #21116:
URL: https://github.com/apache/airflow/pull/21116#discussion_r792460379
##########
File path: airflow/models/taskinstance.py
##########
@@ -220,7 +220,7 @@ def clear_task_instances(
# outdated. We make max_tries the maximum value of its
# original max_tries or the last attempted try number.
ti.max_tries = max(ti.max_tries, ti.prev_attempted_tries)
- ti.state = State.NONE
+ ti.state = TaskInstanceState.NONE
Review comment:
Ah yeah I remember being told about this… Maybe we should remove
`TaskInstanceState.NONE` altogether at some point and just use `None` (the
built-in one).
--
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]