Skip to content

Fix health check: SQLAlchemy 2.x compatibility and Redis host config#173

Open
fazalpsinfo-cmyk wants to merge 1 commit into
ascherj:mainfrom
fazalpsinfo-cmyk:fix/sqlalchemy-redis-health-fixes
Open

Fix health check: SQLAlchemy 2.x compatibility and Redis host config#173
fazalpsinfo-cmyk wants to merge 1 commit into
ascherj:mainfrom
fazalpsinfo-cmyk:fix/sqlalchemy-redis-health-fixes

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Description

This PR fixes two bugs in the health check endpoint:

Fix #154 - SQLAlchemy 2.x raw SQL

Wrapped the raw "SELECT 1" string with sqlalchemy.text() for SQLAlchemy 2.x compatibility. SQLAlchemy 2.x requires textual SQL expressions to be explicitly declared as text('SELECT 1').

Fix #155 - Missing redis_host/redis_port config

Replaced references to settings.redis_host and settings.redis_port (which don't exist on the Settings model) with settings.redis_url, parsing the hostname and port from the existing redis_url configuration field.

Related Issues

Closes #154
Closes #155

If you found this useful, consider buying me a coffee: https://buymeacoffee.com/muhamedfazalps

@fazalpsinfo-cmyk
fazalpsinfo-cmyk force-pushed the fix/sqlalchemy-redis-health-fixes branch from e71a033 to 9fcbd21 Compare July 17, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant