Add job_event and job_event_ack to the gateway protocol

A gateway keeps what happened to a job it was handed (started, finished,
failed) and re-sends it on every connection until the cloud acknowledges
it, so an outcome reached while the cloud was unreachable still arrives.
This commit is contained in:
2026-10-30 08:05:04 +00:00
parent 2bc5b88dd7
commit b8462f25fc
3 changed files with 49 additions and 0 deletions
@@ -122,6 +122,17 @@
"required": ["type", "request_id", "printer_id"],
"additionalProperties": false
},
{
"type": "object",
"title": "JobEventAck",
"description": "The cloud has dealt with a JobEvent (applied it, or found it had nothing to change), so the gateway can forget it. Not sent when the cloud could not record it, so the gateway sends it again.",
"properties": {
"type": { "const": "job_event_ack" },
"event_id": { "type": "integer" }
},
"required": ["type", "event_id"],
"additionalProperties": false
},
{
"type": "object",
"title": "ProvisionPrinter",