Files
uberbringer/internal/app
57_WolveandClaude Opus 5.5 7e6cda16f8 Stop the print queue when its store fails
A store write that fails after start, such as on a full disk or a
damaged page, must stop the daemon, and nothing is retried: a write
that failed once seldom succeeds a moment later. The queue now stops on
the first store error. Submit answers that error once and ErrClosed
after, the job in hand writes nothing more to the store and keeps the
state the store last recorded, so one not yet marked sending reads as
queued again, and Run returns the error. A failure that an insert meets
while shutdown waits for it is returned too.

Every store error that stops the queue is marked ErrStoreFailed. serve
logs it once at ERROR, reports it to Sentry once and stops the daemon.
A request whose job could not be stored answers 500 internal_error
without being logged or reported again, so the failure is reported
once whoever submitted the job. docs/configuration.md lists it under
Logs.

With the memory store nothing fails, so the daemon behaves as before.
Part of stage 1c of docs/plans/job-store.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:44:43 -06:00
..