Gautam-Bharadwaj opened a new pull request, #63663: URL: https://github.com/apache/airflow/pull/63663
Replaced session.commit() with session.flush() in merge_conn and add_default_pool_if_not_exists. These utility functions should not commit the session directly as they might be called within a larger transactional context, and committing early can leave the database in an inconsistent state if subsequent operations fail. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Antigravity (Google Deepmind) Generated-by: Antigravity (Google Deepmind) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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]
