This is an automated email from the ASF dual-hosted git repository.

vincbeck pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0484dd7f755 Fix scheduler query count test failing on main (#77698)
0484dd7f755 is described below

commit 0484dd7f755777380eeaf49b980189307d44eea6
Author: raphaelauv <[email protected]>
AuthorDate: Fri Nov 27 18:33:26 2026 +0100

    Fix scheduler query count test failing on main (#77698)
    
    Since #77546 the scheduler reads again the task instances it queued before
    building their workloads, one more query per scheduler loop. Main was
    already at the allowed margin, so the one-Dag cases now record 37 queries
    on Postgres against the 36 allowed, and fail on every PR that runs the
    core DB tests.
    
    Co-authored-by: raphaelauv <[email protected]>
---
 airflow-core/tests/unit/jobs/test_scheduler_job.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow-core/tests/unit/jobs/test_scheduler_job.py 
b/airflow-core/tests/unit/jobs/test_scheduler_job.py
index f2969bbb918..cea327eabcb 100644
--- a/airflow-core/tests/unit/jobs/test_scheduler_job.py
+++ b/airflow-core/tests/unit/jobs/test_scheduler_job.py
@@ -15183,8 +15183,8 @@ class TestSchedulerJobQueriesCount:
     @pytest.mark.parametrize(
         ("expected_query_count", "dag_count", "task_count"),
         [
-            (21, 1, 1),  # One DAG with one task per DAG file.
-            (21, 1, 5),  # One DAG with five tasks per DAG file.
+            (22, 1, 1),  # One DAG with one task per DAG file.
+            (22, 1, 5),  # One DAG with five tasks per DAG file.
             (148, 10, 10),  # 10 DAGs with 10 tasks per DAG file.
         ],
     )

Reply via email to