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

Support disabling of dag_dir_list_interval #28678

Open
1 of 2 tasks
arjunanan6 opened this issue Jan 2, 2023 · 2 comments
Open
1 of 2 tasks

Support disabling of dag_dir_list_interval #28678

arjunanan6 opened this issue Jan 2, 2023 · 2 comments
Assignees
Labels

Comments

@arjunanan6
Copy link
Contributor

Apache Airflow version

2.5.0

What happened

We have a unique situation with our Airflow deployment, in that we bake the DAGs into the image pre-deployment, meaning that a deployment is triggered every time there is a new DAG contribution.

During a recent performance troubleshooting, we have uncovered that the scheduler consumes much more memory than it should, and while looking for ways to optimize it, we came across the dag_dir_list_interval configuration. It's currently set to the default of 5 minutes. However, it seems like there is no possibility to disable it barring the possibility of setting it to a really high value like 86400.

What you think should happen instead

It would be nice if the parameter supports a value, say -1 that disables the scan altogether.

How to reproduce

Default configuration, the scan takes place every 5 minutes.

Operating System

Debian GNU/Linux

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

Airflow deployed with official helm chart on AKS.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@arjunanan6 arjunanan6 added area:core kind:bug This is a clearly a bug labels Jan 2, 2023
@hussein-awala
Copy link
Member

happy to work on this

@potiuk
Copy link
Member

potiuk commented Jan 3, 2023

Assigned you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants