feat: slow job detection + CSS link improvements#37
Merged
Conversation
…hreshold Adds `SolidQueueWeb.slow_job_threshold` (default nil = disabled). When set, claimed jobs running longer than the threshold are highlighted with a warning row and "slow" badge on the Running tab. A "Slow Jobs" card appears on the dashboard when any jobs exceed the threshold. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Seeds 3 extra claimed jobs running 8m, 20m, and 45m to demonstrate slow job highlighting; dummy app initializer sets slow_job_threshold to 5 minutes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…olor Adds sqd-table-link class to all job class links across jobs, failed jobs, history, queue jobs, and search views; sets text-decoration none and color: var(--primary) so the link color follows the dark mode theme instead of using the browser default bright blue. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The slow_job_threshold config was being set in the test environment, causing the "no threshold configured" spec to fail on CI. 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
SolidQueueWeb.slow_job_thresholdconfig option (defaultnil= disabled); when set to a duration (e.g.5.minutes), claimed jobs running longer than the threshold are flagged visuallysqd-table-linkclass; link color usesvar(--primary)so it correctly follows the dark mode theme instead of the bright browser-default blueTest plan
bundle exec rake— 173 examples, 0 failures, 100% coverage, rubocop cleanbundle exec rake dev:resetthencd spec/dummy && bin/rails server/jobs?status=claimed— confirm "Running For" column present; jobs seeded at 8m/20m/45m show orange row + "slow" badge with 5-minute threshold configured in dummy initializer/jobs(dashboard) — confirm "Slow Jobs" card appears with count and link#58a6ffblue, not bright browser blue🤖 Generated with Claude Code