Vamsi-klu commented on PR #68267: URL: https://github.com/apache/airflow/pull/68267#issuecomment-4764148415
`_serialize_dag_capturing_errors()` still swallows non-OperationalError DB failures. Please re-raise `(DBAPIError, StaleDataError)` here too; otherwise IntegrityError/StaleDataError from `SerializedDagModel.write_dag()` or related per-DAG DB writes becomes an import error and the outer retry/rollback block never runs. A regression test should make `SerializedDagModel.write_dag` raise `IntegrityError` or `StaleDataError`, not only `SerializedDAG.bulk_write_to_db`. -- 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]
