feat: failure rate sparkline per queue + QueueStats service object#35
Merged
Conversation
Add a mini 12-bar failure-rate sparkline to each row of the Queues table showing the percentage of jobs that failed (vs. completed) in each of the last 12 hours. Bars are red and proportional to the rate (0–100 %); hovering shows the hour and exact percentage; queues with no activity show "—". Extract all five index queries (completed_24h, failed_24h, oldest_ready, failure_sparklines) from QueuesController into a QueueStats service object so the action stays thin. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add sparkline to Queues feature bullet; remove from roadmap now that it is shipped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
QueuesController#indexqueries (completed_24h,failed_24h,oldest_ready, and the two pluck queries feedingfailure_sparklines) into a newQueueStatsservice object (app/services/solid_queue_web/queue_stats.rb), keeping the action thinbundle exec rake dev:seedTest plan
bundle exec rake dev:reset) and visit/jobs/queues— the Failure Rate (12h) column shows red mini-bar charts for queues with recent failures and "—" for queues with no 12h activity🤖 Generated with Claude Code