You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/07 11:54:26 UTC
[GitHub] [airflow] ashb commented on a change in pull request #16681: Introduce RESTARTING state
ashb commented on a change in pull request #16681:
URL: https://github.com/apache/airflow/pull/16681#discussion_r665299592
##########
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:
It's not clear to me why `State.SHUTDOWN` wasn't in task_states before, but it looks like Andew fixed that in #15285, so this can just become
```suggestion
tis = list(self.get_task_instances(session=session, state=State.task_states))
```
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org