Skip to content

feat: add QUERY_TIMEOUT env var for server-side statement_timeout#4

Merged
davidgilady merged 1 commit intomainfrom
david.g/database_connection_timeout_configuration
Feb 24, 2026
Merged

feat: add QUERY_TIMEOUT env var for server-side statement_timeout#4
davidgilady merged 1 commit intomainfrom
david.g/database_connection_timeout_configuration

Conversation

@davidgilady
Copy link
Owner

  • Read QUERY_TIMEOUT environment variable (seconds) in server.py
  • Pass query_timeout through DatabaseService to DbConnPool
  • DbConnPool sets PostgreSQL statement_timeout via connection options
  • Timeout is enforced server-side, independent of access mode
  • Add tests for timeout configuration in both access modes

- Read QUERY_TIMEOUT environment variable (seconds) in server.py
- Pass query_timeout through DatabaseService to DbConnPool
- DbConnPool sets PostgreSQL statement_timeout via connection options
- Timeout is enforced server-side, independent of access mode
- Add tests for timeout configuration in both access modes
@davidgilady davidgilady merged commit 3ad67ab into main Feb 24, 2026
1 check passed
@davidgilady davidgilady deleted the david.g/database_connection_timeout_configuration branch February 24, 2026 23:21
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