oban.job.exception
An Oban job raised an exception or exited. Uses the same fields as oban.job.stop.
Fields
12| Field | Type | Description |
|---|---|---|
event_type | string | Allowed value: oban.job.exception. |
id | integer | Oban job database ID. |
worker | string | Worker module name. |
queue | string | Queue the job ran on. |
state | string | Final job state, e.g. "failure", "discard". |
attempt | integer | Attempt number (1-based). |
prefix | string | Oban database prefix (schema). |
tags | array<string> | Tags assigned to the job. |
args | object | Job arguments map. |
args.* | any | Additional caller-defined keys. |
duration | number | Job execution duration in microseconds. |
request_id | string | Request ID propagated from the originating request or generated for background jobs. |
Example
{ "event_type": "oban.job.exception", "id": 123457, "worker": "MyApp.Workers.WelcomeEmail", "queue": "default", "state": "failure", "attempt": 2, "prefix": "public", "tags": [ "mailer" ], "args": { "user_id": 42 }, "duration": 125000, "request_id": "f2a9c81d4e6b3a7f0c5d9e2b8a4f6c1d"}