YingboWang commented on a change in pull request #5499:
URL: https://github.com/apache/airflow/pull/5499#discussion_r468732624
##########
File path: airflow/models/taskinstance.py
##########
@@ -280,7 +281,8 @@ def try_number(self):
database, in all other cases this will be incremented.
"""
# This is designed so that task logs end up in the right file.
- if self.state == State.RUNNING:
+ # TODO: whether we need sensing here or not (in sensor and
task_instance state machine)
+ if self.state in State.running():
Review comment:
"sensing" state means this TI is currently being poked by smart sensor.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]