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/11/22 15:25:57 UTC

[GitHub] [airflow] tanelk commented on a change in pull request #19747: Fix Tasks get stuck in scheduled state

tanelk commented on a change in pull request #19747:
URL: https://github.com/apache/airflow/pull/19747#discussion_r754384388



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -339,15 +342,15 @@ def _executable_task_instances_to_queued(self, max_tis: int, session: Session =
                 # reached.
                 dag_id = task_instance.dag_id
 
-                current_max_active_tasks_per_dag = dag_max_active_tasks_map[dag_id]
+                current_active_tasks_per_dag = dag_active_tasks_map[dag_id]
                 max_active_tasks_per_dag_limit = task_instance.dag_model.max_active_tasks
                 self.log.info(
                     "DAG %s has %s/%s running and queued tasks",
                     dag_id,
-                    current_max_active_tasks_per_dag,
+                    current_active_tasks_per_dag,
                     max_active_tasks_per_dag_limit,
                 )
-                if current_max_active_tasks_per_dag >= max_active_tasks_per_dag_limit:
+                if current_active_tasks_per_dag >= max_active_tasks_per_dag_limit:

Review comment:
       unrelated, but corrected a variable name, that caused some confusion




-- 
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