Skip to content

Invalid DAG count is shown on Airflow UI when zero DAGs are present #34100

Closed

Description

@deeptansh

Apache Airflow version

2.7.0

What happened

When Example DAGs are disabled from using docker-compose.yaml file, and no DAGs are present in the dags folder, its still showing the DAG count of Example dags on screen as 53 ( No DAGs are present on UI)

Airflow_Dag_Count

What you think should happen instead

  • After updating value for parameter AIRFLOW__CORE__LOAD_EXAMPLES to false, its removing all DAGs from UI
  • DAG Count should also get updated to zero(0)

How to reproduce

  • Download 2.7.0 docker compose file available at ('https://airflow.apache.org/docs/apache-airflow/2.7.0/docker-compose.yaml')
  • Create folder structure using data available here
  • Create an airflow deployment using above mentioned steps
  • Initialize Airflow using docker compose up airflow-init
  • Start Airflow application using docker compose up command
  • Airflow started with 53 Example dags
  • DAG count still shows 53
  • Stop Airflow application using docker compose down command
  • Updated parameter AIRFLOW__CORE__LOAD_EXAMPLES: 'true' to AIRFLOW__CORE__LOAD_EXAMPLES: 'false' in docker-compose.yaml file
  • Start Airflow application using docker compose up command
  • Airflow started with zero(0) Example dags
  • DAG count still shows 53 but no DAGs are there on the screen
Airflow_Dag_Count

Operating System

macos Ventura 13.4.1 (c) (22F770820d)

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

Docker compose file -> 'https://airflow.apache.org/docs/apache-airflow/2.7.0/docker-compose.yaml'
Create folder structure using data available here

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. Taragolis commented on Sep 5, 2023

    @Taragolis
    Contributor
  2. added
    duplicateIssue that is duplicated
    and removed
    needs-triagelabel for new issues that we didn't triage yet
    on Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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