Skip to content

scheduler.tasks.running metric is always 0 #29578

@pdebelak

Description

@pdebelak

Apache Airflow version

2.5.1

What happened

I'd expect the scheduler.tasks.running metric to represent the number of running tasks, but it is always zero. It appears that #10956 broke this when it removed the line that increments num_tasks_in_executor. Right now that variable is set to 0, never incremented, and the emitted as a gauge.

What you think should happen instead

scheduler.tasks.running should either represent the number of tasks running or be removed altogether.

How to reproduce

No response

Operating System

Ubuntu 18.04

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions