You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "josh-fell (via GitHub)" <gi...@apache.org> on 2023/03/02 14:20:32 UTC

[GitHub] [airflow] josh-fell commented on issue #29864: airflow dags list is not listing all the dags present in airflow home location

josh-fell commented on issue #29864:
URL: https://github.com/apache/airflow/issues/29864#issuecomment-1451943639

   Hi @MuthuVignesh91, I cannot reproduce this on Airflow 2.5.1 nor 2.4.0.
   
   DAG used:
   ```py
   from pendulum import datetime
   
   from airflow.decorators import dag
   from airflow.operators.empty import EmptyOperator
   
   
   for i in range(200):
   
       @dag(dag_id=f"dag_{i}", start_date=datetime(2023, 1, 1), schedule=None)
       def _dag():
           EmptyOperator(task_id="empty")
   
       _dag()
   ```
   DAGs in Airflow UI
   <img width="281" alt="image" src="https://user-images.githubusercontent.com/48934154/222450259-9187f29e-4456-438a-a30a-ac9288762716.png">
   
   Running `airflow dags list`
   ```sh
   astro@d2c01fe9b20e:/usr/local/airflow$ airflow dags list | tail -n +3 | head -n -1 | wc -l
   200
   ```
   (^ Starting the count at line 3 since there are 2 header rows in the output and there is an empty line at the end.)
   
   Is there always a consistent number of DAGs returned when running this against an MWAA environment? Also, can you try running `airflow dags list` on an environment with a more recent Airflow version too please?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org