Skip to content

Gracefully degrade homepage queue status during Redis outages#46

Draft
roo-code-bruno[bot] wants to merge 1 commit into
mainfrom
fix/homepage-redis-outage-29cxjkxxflapb
Draft

Gracefully degrade homepage queue status during Redis outages#46
roo-code-bruno[bot] wants to merge 1 commit into
mainfrom
fix/homepage-redis-outage-29cxjkxxflapb

Conversation

@roo-code-bruno
Copy link
Copy Markdown

@roo-code-bruno roo-code-bruno Bot commented Apr 7, 2026

Opened by @roo-code-bruno on behalf of Bruno Bergher. View the task or mention @roo-code-bruno for follow-up asks.

What problem this solves

HomeController#index was calling Sidekiq::Queue.new.size on every request, so Redis connection failures could raise before the homepage rendered.

Why this change was made

  • move the queue lookup behind a narrow rescue path that treats Redis connectivity failures as unavailable queue status
  • show the Redis card state explicitly so the page renders either the live queue count or an unavailable fallback
  • cover both the healthy and Redis outage paths with controller tests

User impact

  • the homepage keeps rendering when Redis is unavailable
  • the Redis card shows Queue status unavailable instead of turning the whole request into a 500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant