The GitHub Actions job "Tests" on 
airflow.git/fix/fab-cleanup-session-middleware-error-handling has failed.
Run started by GitHub user 8silvergun (triggered by eladkal).

Head commit for run:
cf681f96c2140563be3d99180f04a5e8df8612d3 / nanaones <[email protected]>
providers-fab: Handle database errors in cleanup_session_middleware

When Session.remove() is called in the finally block of
cleanup_session_middleware, it may raise an OperationalError
if the underlying database connection is already dead (e.g.,
MySQL 'Server has gone away', Aurora failover, network timeout).

The unhandled exception propagates as a 500 Internal Server
Error to the client, even when the original request succeeded.

This commit wraps Session.remove() in a try-except block that
catches and logs the error as a warning, consistent with how
session cleanup is handled elsewhere in Airflow.

Fixes follow-up to #61480.

Report URL: https://github.com/apache/airflow/actions/runs/22289472734

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to