Skip to content

Tell a job printed only once its label is kept - #392

Merged
DL6ER merged 1 commit into
masterfrom
fix/print-again-label
Dec 5, 2026
Merged

DL6ER merged 1 commit into
masterfrom
fix/print-again-label

Conversation

@DL6ER

@DL6ER DL6ER commented Dec 5, 2026

Copy link
Copy Markdown
Owner

A job counted as printed before its label was kept in the history. Printing it again by its id right after, e.g., from Home Assistant, could then fail with "No such printed label", and the list of printed labels could miss it.

A job that printed is now told as printing until its label is kept, and a lookup by id waits for a job that just ended. A job that failed is told at once.

Nothing changes on screen.

The queue marked a job printed before its end hook kept the label in the history. Printing it again by its id right after, e.g., from Home Assistant, could then fail with "No such printed label", and the designer's list of printed labels could miss it.

1. A job that printed is told as printing until its end is kept, for the print answer, `/api/queue`, the lines and MCP alike. A job that failed or was removed is told at once, with its message.
2. Looking up a printed label by its id, to print it again, open it or show its preview, waits for a job that ended but whose label is not kept yet, `print_store.LOCK_TIMEOUT` at most.

Signed-off-by: DL6ER <dl6er@dl6er.de>
Copilot AI balanced review requested due to automatic review settings December 5, 2026 18:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@DL6ER
DL6ER merged commit 2cb9caa into master Dec 5, 2026
7 checks passed
@DL6ER
DL6ER deleted the fix/print-again-label branch December 5, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants