yuqian90 commented on a change in pull request #16681:
URL: https://github.com/apache/airflow/pull/16681#discussion_r665419327
##########
File path: airflow/models/dagrun.py
##########
@@ -487,7 +487,9 @@ def task_instance_scheduling_decisions(self, session:
Session = None) -> TISched
schedulable_tis: List[TI] = []
changed_tis = False
- tis = list(self.get_task_instances(session=session,
state=State.task_states + (State.SHUTDOWN,)))
+ tis = list(
+ self.get_task_instances(session=session, state=State.task_states +
tuple(State.terminated_states))
+ )
Review comment:
Thanks. This is great.
--
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]