Skip to content

Airflow keeps on increasing duration of dag if it is paused after it went to running state. #44443

@Raul824

Description

@Raul824

Apache Airflow version

Other Airflow 2 version (please specify below)

If "Other Airflow 2 version" selected, which one?

v2.10.1

What happened?

If dags are paused after they start running their duration keeps on increasing.
Due to this the Cluster Activity shows top 5 longest dags which were paused and are not even active.

What you think should happen instead?

Pausing a dag should reset the status from running to scheduled or queued or no state.
Cluster Activity longest dags should exclude pause dags.

How to reproduce

  1. Trigger a dag
  2. Once it starts running pause the dag.
  3. Check the duration it will keep on increasing even though it is paused.
  4. After few days check the cluster activity and paused dags will eventually come to the top as the long running dag.

Operating System

AKS

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

AKS
Airflow 2.10.1

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions