---
url: >-
  https://adk.nht.io/api/@nhtio/adk/dispatch_runner/interfaces/DispatchEndEvent.md
description: 'Payload fired when a dispatch ends — successfully, by error, or by abort.'
---

# Interface: DispatchEndEvent

Defined in: [lib/types/dispatch\_runner.ts:293](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/types/dispatch_runner.ts#L293)

Payload fired when a dispatch ends — successfully, by error, or by abort.

## Properties

| Property                                      | Type                               | Description                                                                  | Defined in                                                                                                                |
| --------------------------------------------- | ---------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|  `dispatchId` | `string`                           | Stable identifier for this dispatch.                                         | [lib/types/dispatch\_runner.ts:295](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/types/dispatch_runner.ts#L295) |
|  `durationMs` | `number`                           | Duration in milliseconds.                                                    | [lib/types/dispatch\_runner.ts:307](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/types/dispatch_runner.ts#L307) |
|  `endedAt`       | `DateTime`                         | When the dispatch ended.                                                     | [lib/types/dispatch\_runner.ts:305](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/types/dispatch_runner.ts#L305) |
|  `error?`          | `Error`                            | The error stored by `ctx.nack(error)`, or `undefined` for `ack` / `aborted`. | [lib/types/dispatch\_runner.ts:299](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/types/dispatch_runner.ts#L299) |
|  `iterations` | `number`                           | Total iterations that ran during this dispatch.                              | [lib/types/dispatch\_runner.ts:301](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/types/dispatch_runner.ts#L301) |
|  `startedAt`   | `DateTime`                         | When the dispatch began.                                                     | [lib/types/dispatch\_runner.ts:303](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/types/dispatch_runner.ts#L303) |
|  `status`         | `"ack"` | `"nack"` | `"aborted"` | How the dispatch settled.                                                    | [lib/types/dispatch\_runner.ts:297](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/types/dispatch_runner.ts#L297) |
