fix(webapp): a moment without Redis is a 503 to try again, not a 500 (#1326) #1327
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1326-redis-503"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1326. Found by #1246's live checks.
redis.exceptions.ConnectionError, which nothing caught.app/main.pyfor RedisConnectionErrorandTimeoutErroranswers 503 withRetry-After: 2and{"detail": "Quest Board is briefly unavailable. Try again in a moment."}. It logs a warning, not a traceback. It is never a 401, so nobody is signed out of a session Redis still holds. It covers every Redis use, not only sessions.docs/OPERATIONS.md's worker-healthcheck step usedkill, which isn't in the image, anddocker pause, which Docker marks unhealthy without running the probe. It now stops and continues the process from the host withdocker kill --signal=SIGSTOP/SIGCONT.Checked on the dev host: the new test plus the auth and Redis-timeout tests, 50 passed. ruff format and check are clean, and the changelog check is OK.
The new sentence goes on the Wording Review page (part u) before merge.
🤖 Generated with Claude Code