Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
deeptansh opened this issue Sep 5, 2023 · 1 comment
Closed
2 tasks done
Labels
area:core duplicate Issue that is duplicated kind:bug This is a clearly a bug

Comments

@deeptansh
Copy link

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

@deeptansh deeptansh added area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels Sep 5, 2023
@Taragolis
Copy link
Contributor

@Taragolis Taragolis added duplicate Issue that is duplicated and removed needs-triage label for new issues that we didn't triage yet labels Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core duplicate Issue that is duplicated kind:bug This is a clearly a bug
Projects
None yet
Development

No branches or pull requests

2 participants