Content-Length: 277161 | pFad | http://github.com/apache/airflow/issues/50938

DC GET /dags API returns is_active=true for paused DAGs in UI · Issue #50938 · apache/airflow · GitHub
Skip to content

GET /dags API returns is_active=true for paused DAGs in UI #50938

Closed
@seosuho

Description

@seosuho

Official Helm Chart version

1.13.1

Apache Airflow version

v2.10.3

Kubernetes Version

v1.26.4

Helm Chart configuration

No response

Docker Image customizations

No response

What happened

We observed that the GET /dags REST API endpoint returns "is_active": true for DAGs that are paused in the Airflow UI.

For example, we have DAGs like airflow_db_clean and airflow that are marked as paused in the Airflow UI, but the REST API still returns "is_active": true. This behavior is consistent across all DAGs that are paused.

What you think should happen instead

The is_active field in the REST API should reflect the same DAG state shown in the Airflow UI. If a DAG is paused in the UI, its is_active field should be false (or a different field clearly indicating its current scheduling status should be provided).

How to reproduce

step1) Navigate to Airflow UI → DAGs tab.
step2) Pause a DAG such as airflow_db_clean.
step3) Go to Docs → REST API Reference (Swagger UI).
step4) Execute the GET /dags API.
step5) Observe that the "is_active" field for paused DAGs is still true.

sample api resoponse =>

{
"dag_id": "airflow_db_clean",
"is_active": true,
"is_paused": true
}

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

    area:APIAirflow's REST/HTTP APIarea:helm-chartAirflow Helm Chartkind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/apache/airflow/issues/50938

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy