Skip to content

Update td_connect.py#312

Open
NathanG-TD wants to merge 1 commit into
mainfrom
teradata-reconnection
Open

Update td_connect.py#312
NathanG-TD wants to merge 1 commit into
mainfrom
teradata-reconnection

Conversation

@NathanG-TD
Copy link
Copy Markdown
Collaborator

added "pool_pre_ping=True", this tells SQLAlchemy to issue a lightweight SELECT 1 before returning any connection from the pool. When a transient Teradata instance restarts, stale pooled connections are detected and
discarded automatically — the next tool call gets a fresh connection and succeeds without the agent or user seeing any error. Really useful when using Teradata Trial instances.

pool_pre_ping=True tells SQLAlchemy to issue a lightweight SELECT 1 before returning any connection from the pool. When a transient Teradata instance restarts, stale pooled connections are detected and
   discarded automatically — the next tool call gets a fresh connection and succeeds without the agent or user seeing any error.  Really useful when using Teradata Trial instances.
@NathanG-TD NathanG-TD requested a review from remi-td May 18, 2026 06:17
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.

1 participant