How do disable the DAG version ? #66514
Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
-
|
Hi @trongchata! The rapid version increase in your multi-datacenter setup is almost certainly caused by two DAG processors in different instances processing the same DAGs and producing slightly different serializations — leading to each instance detecting "changes" made by the other. Root cause in multi-datacenter setups: When DAG processors run in two separate Airflow instances sharing the same metadata database, each processor independently serializes and stores DAG versions. If there's any non-determinism in serialization (timezone handling, float precision, object ordering), each instance will see the other's write as a "change" and create a new version — causing a rapid version increment loop. Options to address this:
yaml In the second DC's airflow.cfg — disable local DAG processing[dag_processor] ini airflow.cfg[scheduler]
Note: There is currently no config flag to fully disable DAG versioning in Airflow 3.x — it's a core feature of the new architecture. The correct solution is controlling which instances run the DAG processor. Hope this helps! Are both instances using the same shared metadata database or separate DBs that are synced? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mateuscarestiato Both these two airflow instance are using the same shared metadata database. Now we have separate dag processor component from scheduler. For your suggestion,
But I still not sure how to disable the dag process. As I understand, I only need to change the follow configuration to be False, right ? Thank you |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In our case, we have airflow running in two different data centres, and dag processors are running in two airflow instances
The DAG version increase rapidly, seems every time when the dag processor load it, will increase one version.
Our DAG are saved in db, and generate dynamtically.
Is there any possible to disable the DAG version ?
Airflow version 3.2.1
Everything works good in our lower environment, they are single cluster. The DAG version increase rapidly only happen in PROD, two data centres.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions