Skip to content

Airflow UI stops refreshing the DAG status #34835

@pavelpi

Description

@pavelpi

Apache Airflow version

Other Airflow 2 version (please specify below)

What happened

Airflow versions 2.6.1, 2.6.2
When we run a DAG in Airflow, after a few seconds frontend stops updating DAg tasks statuses on UI and we cannot see DAG processing progress. When we watch communication between frontend and backend, we can see that suddenly the server started to report 404 on grid_data?dag_id=<dag_id>&num_runs=25 with {"error": "can't find dag <dag_id>"}. It reports 404 twice and stops all further requests.
Refresh of the page causes page forward to DAGs landing page with error telling DAG <dag_id> seems to be missing from DagBag.
After a while (~1 minute) the DAG is discoverable again. In the background the DAG finishes normally.

What you think should happen instead

The web frontend should keep reporting the DAG progress.

How to reproduce

Run any long running DAG and watch its status.

Operating System

python:3.10-slim-bullseye

Versions of Apache Airflow Providers

apache-airflow-providers-amazon==8.0.0
apache-airflow-providers-apache-spark==4.0.1
apache-airflow-providers-celery==3.1.0
apache-airflow-providers-cncf-kubernetes==6.1.0
apache-airflow-providers-common-sql==1.4.0
apache-airflow-providers-elasticsearch==4.4.0
apache-airflow-providers-ftp==3.3.1
apache-airflow-providers-google==10.0.0
apache-airflow-providers-grpc==3.1.0
apache-airflow-providers-hashicorp==3.3.1
apache-airflow-providers-http==4.3.0
apache-airflow-providers-imap==3.1.1
apache-airflow-providers-microsoft-azure==6.0.0
apache-airflow-providers-microsoft-mssql==3.3.2
apache-airflow-providers-mysql==5.0.0
apache-airflow-providers-odbc==3.2.1
apache-airflow-providers-opsgenie==5.0.0
apache-airflow-providers-oracle==3.6.0
apache-airflow-providers-postgres==5.4.0
apache-airflow-providers-redis==3.1.0
apache-airflow-providers-sftp==4.2.4
apache-airflow-providers-sqlite==3.3.2
apache-airflow-providers-ssh==3.6.0

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

    area:UIRelated to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetpending-response

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions