uranusjr commented on a change in pull request #16401:
URL: https://github.com/apache/airflow/pull/16401#discussion_r650310229
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -823,8 +822,7 @@ def _change_state_for_tis_without_dagrun(
.filter(models.TaskInstance.state.in_(old_states))
.filter(
or_(
- # pylint: disable=comparison-with-callable
- models.DagRun.state != State.RUNNING,
+ models.DagRun.state not in [State.RUNNING, State.QUEUED],
Review comment:
```suggestion
models.DagRun.state.notin_([State.RUNNING,
State.QUEUED]),
```
--
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]