job.execution.timed_out
A job’s device ran out of time. The gateway sends it when the device’s action did not finish within the job’s timeout (counted from when the action was started; one hour unless the job says): the action expired, or, with steps handed out and still unanswered a minute after that, was taken back. A timed-out device counts toward the abort threshold, and retry-failed takes it again. Envelope: endpoint and device are the device’s, package is “houradvantage-connect”. Sent once per device and attempt.
Schema id: urn:houradvantage:events:3:job.execution.timed_out
Fields
| Field | Type | Required | Description |
|---|---|---|---|
job_id | integer | yes | The job’s id (GET /api/tenants/{tenant}/jobs/{id}). |
name | string | The job’s name. Absent when the job was created without one. | |
action | string | yes | The action the device runs: a standard action, or a package action or command. |
state | "queued" \ | "waiting_window" \ | "running" \ |
wave | integer | yes | The device’s wave, counted from 0. at least 0 |
attempt | integer | yes | Which attempt this is: 1, then one more each time retry-failed takes the device again. at least 1 |
action_id | integer | The device’s action for this attempt (its action.result has the same action_id). | |
detail | string | Why: the action’s reason (“step 3 (set_option) still not done after 4 tries when the action expired”), or “its action |
Example
{ "job_id": 7, "name": "volume", "action": "set_settings", "state": "timed_out", "wave": 0, "attempt": 1, "action_id": 42, "detail": "its action 42 did not finish within the job's timeout"}JSON Schema
job.execution.timed_out.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:job.execution.timed_out", "title": "job.execution.timed_out: data", "description": "A job's device ran out of time. The gateway sends it when the device's action did not finish within the job's timeout (counted from when the action was started; one hour unless the job says): the action expired, or, with steps handed out and still unanswered a minute after that, was taken back. A timed-out device counts toward the abort threshold, and retry-failed takes it again. Envelope: `endpoint` and `device` are the device's, `package` is \"houradvantage-connect\". Sent once per device and attempt.", "type": "object", "properties": { "job_id": { "type": "integer", "description": "The job's id (`GET /api/tenants/{tenant}/jobs/{id}`)." }, "name": { "type": "string", "description": "The job's name. Absent when the job was created without one." }, "action": { "type": "string", "description": "The action the device runs: a standard action, or a package action or command." }, "state": { "enum": [ "queued", "waiting_window", "running", "succeeded", "failed", "timed_out", "cancelled" ], "description": "Where the device stands in the job. In this event: always timed_out." }, "wave": { "type": "integer", "minimum": 0, "description": "The device's wave, counted from 0." }, "attempt": { "type": "integer", "minimum": 1, "description": "Which attempt this is: 1, then one more each time retry-failed takes the device again." }, "action_id": { "type": "integer", "description": "The device's action for this attempt (its action.result has the same action_id)." }, "detail": { "type": "string", "description": "Why: the action's reason (\"step 3 (set_option) still not done after 4 tries when the action expired\"), or \"its action <id> did not finish within the job's timeout\"." } }, "required": [ "job_id", "action", "state", "wave", "attempt" ], "examples": [ { "job_id": 7, "name": "volume", "action": "set_settings", "state": "timed_out", "wave": 0, "attempt": 1, "action_id": 42, "detail": "its action 42 did not finish within the job's timeout" } ]}