You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Align 503 liveness response with LivenessResponse schema by adding
optional reason field to LivenessResponse model and using Response
parameter to set status code
- Add NonNegativeInt/PositiveInt validation for PostgresConfig timeout
fields (statement_timeout, lock_timeout, health_check_interval)
- Validate liveness_db_failure_threshold in OLSConfig with helper
function to ensure positive integer value
- Add connect_timeout and statement_timeout to health check connection
- Increment _consecutive_failures in _mark_unhealthy for proper liveness
threshold tracking
- Use _safe_rollback in DatabaseError exception paths
- Close cursor with try/finally in postgres.py for proper cleanup
- Add type annotations to test fixtures and functions
- Tighten no-retry assertion in test_postgres.py to verify reconnect
is not called on DatabaseError
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments