Hide failed jobs from queue list view#3
Merged
Conversation
Add 'failed' to the set of finished statuses filtered out of the queue listing, so failed jobs no longer clutter the view.
Append the sliced print-time prediction (e.g. ' · 21 min') to each queue entry, reusing the plate metadata's print_time_seconds field and the existing _fmt_minutes formatting. Omitted gracefully when the queue item carries no time.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…gainst live API Confirmed against the real Bambuddy /queue/ payload (43 items): every item carries print_time_seconds in seconds; no item ever has a `prediction` field. Removed the misleading fallback. Co-Authored-By: Claude Opus 4.8 <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
Updated the queue list view to hide failed jobs alongside other completed statuses, reducing clutter in the job queue display.
Changes
"failed"to the_DONE_QUEUE_STATUSset in handlers.py!listecommand output to keep the view clean and focused on active jobsDetails
The
_DONE_QUEUE_STATUSconstant is used to filter out finished jobs from the queue list display. Previously, only completed, cancelled, and skipped statuses were hidden. This change extends that behavior to include failed jobs, which are now considered "done" for the purposes of the queue view.https://claude.ai/code/session_01SXJs4zfe6zoDH2RVTxvZzB