Skip to content

Comments

[PECOBLR-1655]Override do_ping for pool_pre_ping support#54

Merged
msrathore-db merged 2 commits intomainfrom
PECOBLR-1655-do-ping
Feb 20, 2026
Merged

[PECOBLR-1655]Override do_ping for pool_pre_ping support#54
msrathore-db merged 2 commits intomainfrom
PECOBLR-1655-do-ping

Conversation

@msrathore-db
Copy link
Collaborator

Override do_ping() to catch any error and return False, letting SQLAlchemy invalidate the dead connection and create a new one. This is simpler and more robust than classifying errors in is_disconnect() — a health check should never raise.

Also pin poetry to 2.0.8 in CI workflows to fix build failures.

Closes #47

Override do_ping() to catch any error and return False, letting
SQLAlchemy invalidate the dead connection and create a new one.
This is simpler and more robust than classifying errors in
is_disconnect() — a health check should never raise.

Also pin poetry to 2.0.8 in CI workflows to fix build failures.

Closes #47

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@msrathore-db msrathore-db changed the title Override do_ping for pool_pre_ping support [PECOBLR-1655]Override do_ping for pool_pre_ping support Feb 20, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Collaborator

@jprakash-db jprakash-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for making the changes

@msrathore-db msrathore-db merged commit e29be21 into main Feb 20, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid SessionHandle: SessionHandle error

2 participants