Show when a job was first sent to the printer
A failed job's error is its last attempt's, so it cannot say whether an earlier attempt wrote part of the receipt: a first attempt cut off by a write error and a second that fails to dial end with a dial error. Job status now has sent_at, the time the first attempt was about to write to the printer, taken from the delivery's first sending mark. A failed job with sent_at reached the printer and may have printed in part; one without it never did. Part of stage 1c of docs/plans/job-store.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7e6cda16f8
commit
9b25c1bfd3
6 files changed
+89
-9
No files matched your search
@@ -80,6 +80,9 @@ version may break callers; such changes are listed under **Breaking**.
|
||||
`module:<name>`, or `ntfy:<subscription>`. The worker's log lines carry
|
||||
the source and the ID of the request, or of the ntfy message, that sent
|
||||
the job.
|
||||
- `GET /api/v1/jobs/:id` reports `sent_at`, when the first attempt was about
|
||||
to write to the printer. A failed job with `sent_at` reached the printer
|
||||
and may have printed in part; one without it never did.
|
||||
- `image` elements take `"optional": true`: an image that cannot be fetched
|
||||
or decoded prints as `[image unavailable]` instead of failing the job,
|
||||
and one whose `width` is wider than the paper shrinks to it.
|
||||
|
||||
Reference in new issue
Block a user