Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions airflow/jobs/scheduler_job_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ def _executable_task_instances_to_queued(self, max_tis: int, session: Session) -
states=list(EXECUTION_STATES), session=session
)

num_tasks_in_executor = 0
# Number of tasks that cannot be scheduled because of no open slot in pool
num_starving_tasks_total = 0

Expand Down Expand Up @@ -523,7 +522,6 @@ def _executable_task_instances_to_queued(self, max_tis: int, session: Session) -
Stats.gauge(f"pool.starving_tasks.{pool_name}", num_starving_tasks)

Stats.gauge("scheduler.tasks.starving", num_starving_tasks_total)
Stats.gauge("scheduler.tasks.running", num_tasks_in_executor)
Stats.gauge("scheduler.tasks.executable", len(executable_tis))

if len(executable_tis) > 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ Name Description
``dag_processing.file_path_queue_size`` Number of DAG files to be considered for the next scan
``dag_processing.last_run.seconds_ago.<dag_file>`` Seconds since ``<dag_file>`` was last processed
``dag_processing.file_path_queue_size`` Size of the dag file queue.
``scheduler.tasks.running`` Number of tasks running in executor
``scheduler.tasks.starving`` Number of tasks that cannot be scheduled because of no open slot in pool
``scheduler.tasks.executable`` Number of tasks that are ready for execution (set to queued)
with respect to pool limits, DAG concurrency, executor state,
Expand Down
5 changes: 5 additions & 0 deletions newsfragments/30374.significant.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The gauge ``scheduler.tasks.running`` no longer exist

The gauge has never been working and its value has always been 0. Having an accurate
value for this metric is complex so it has been decided that removing this gauge makes
more sense than fixing it with no certainty of the correctness of its value.