Desdroid opened a new issue, #65674: URL: https://github.com/apache/airflow/issues/65674
### Under which category would you file this issue? Airflow Core ### Apache Airflow version 3.2.1 ### What happened and how to reproduce it? ** Issue Description ** Our dags heavily use dynamic task mapping and we see that the DAG Versions ever increases - most of the time even within one dag run. We have not pushed any changes though. Also we don't see any warning from the Dag version inflation detection in the UI. The explanations at the docs https://airflow.apache.org/docs/apache-airflow/stable/faq.html#why-does-my-dag-version-keep-increasing don't apply to the reproduction dag below, if i'm not mistaken. I assume the issue has to do with dynamic task mapping. ** How to Reproduce ** Add the following DAG to an Airflow 3.2.1 installation, then trigger it a couple of times. Almost each run seems to get a new version. ```python from datetime import datetime from airflow.sdk import dag, task, task_group @dag( dag_id="TEST_DTM", dag_display_name="TEST DTM", schedule=None, default_args={"owner": "airflow", "email": ""}, start_date=datetime(2024, 1, 25), ) def dtm_test( exponent: int = 2, ): @task def get_data(): return [20, 100, 200, 222, 242, 272] @task def to_exp(number: int, exponent: int) -> float: return number**exponent @task def trunc(number: float, digits: int) -> float: return round(number / 22, digits) @task def save(number: list[float]): for n in number: print(f"Got number: {n}") @task_group def transform(number: int, exponent: int) -> float: a = to_exp(number, exponent) b = trunc(a, 2) return b data = get_data() result = transform.partial(exponent=exponent).expand(number=data) save(result) instance = dtm_test() ``` ### What you think should happen instead? The versions should stay the same. ### Operating System Airflow Docker / Debian ### Deployment Official Apache Airflow Helm Chart ### Apache Airflow Provider(s) _No response_ ### Versions of Apache Airflow Providers _No response_ ### Official Helm Chart version 1.20.0 (latest released) ### Kubernetes Version v1.32.12 ### Helm Chart configuration _No response_ ### Docker Image customizations _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
