---
title: oban.job.exception
description: An Oban job raised an exception or exited. Uses the same fields as oban.job.stop.
url: https://docs.honeybadger.io/insights/event-types/elixir/oban.job.exception/
---

An Oban job raised an exception or exited. Uses the same fields as oban.job.stop.

Source **Oban** Category **Jobs** Fields **12** [honeybadger-elixir](https://docs.honeybadger.io/lib/elixir/)

## Fields

| 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

```json
{
  "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"
}
```

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
