eladkal commented on a change in pull request #20349:
URL: https://github.com/apache/airflow/pull/20349#discussion_r770802146
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -316,6 +316,15 @@ def _executable_task_instances_to_queued(self, max_tis:
int, session: Session =
pool_to_task_instances: DefaultDict[str, List[models.Pool]] =
defaultdict(list)
for task_instance in task_instances_to_examine:
+ # If the dag is no longer in the dagbag, don't bother
Review comment:
How is that case possible?
The path that leads to here is:
`_do_scheduling` -> `_critical_section_execute_task_instances` ->
`_executable_task_instances_to_queued`
It's odd that dagruns were created but the task eventually is "dagless". How
was dagrun created if the dag is not in the dagbag?
Is this designed to handle the edge case of removing the DAG after a dagrun
was created?
--
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]