saidiraja commented on issue #65674: URL: https://github.com/apache/airflow/issues/65674#issuecomment-4346713888
### Reproduction on Airflow 3.2.0 I reproduced this issue with the following environment: * Airflow 3.2.0 * Python 3.12.3 * Ubuntu (WSL2) ### Summary I created a DAG using TaskFlow API with dynamic task mapping and triggered it multiple times. Initially, the DAG was detected by `DagBag` but not available in `DagModel`, causing: ``` DagNotFound: Dag id TEST_DTM not found in DagModel ``` After running: ``` airflow standalone ``` the DAG was properly registered and triggers succeeded. ### Observations After triggering the DAG three times: * `dag_version` table contains **3 rows** for the same DAG * version numbers incremented: **1 → 2 → 3** * `serialized_dag` and `dag_code` also contain multiple entries ### Conclusion The DAG version increases across repeated triggers even though the DAG definition does not change, which confirms the reported issue. I have collected logs, database evidence, and screenshots locally. <img width="862" height="247" alt="Image" src="https://github.com/user-attachments/assets/e9d8ce55-041e-4c18-9c1e-48e2129b4bd4" /> <img width="1066" height="491" alt="Image" src="https://github.com/user-attachments/assets/3db52b40-66cd-4792-94b9-c4215fee8f2a" /> -- 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]
