ephraimbuddy opened a new pull request, #58259: URL: https://github.com/apache/airflow/pull/58259
When writing serialized DAGs to the database, if DagCode.write_code failed or serializedDag writing failed, after DagVersion was created, the DagVersion would remain committed even though the SerializedDagModel write failed. This left orphaned DagVersion records in the database that could cause inconsistencies in DAG versioning. The fix ensures all operations (DagVersion, SerializedDagModel, and DagCode) are created within the same transaction, so if any operation fails, everything rolls back together maintaining database consistency. -- 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]
