---
title: HandlerOutcome
description: "What a workload's hook handler did. Its output is in the daemon's log, not here."
---

What a workload's hook handler did. Its output is in the daemon's log, not here.

## Properties

### durationMs

```ts
durationMs: number;
```

Milliseconds from spawn to exit or kill.

***

### error?

```ts
optional error?: string;
```

Why it could not run at all, such as `not executable`.

***

### exitCode?

```ts
optional exitCode?: number;
```

The exit code, or `null` when the handler was killed or never started.

***

### signal?

```ts
optional signal?: number;
```

The signal that ended it, if one did.

***

### succeeded

```ts
succeeded: boolean;
```

Whether it ran and exited 0 within its budget.

***

### timedOut

```ts
timedOut: boolean;
```

Whether the daemon killed it at its time budget.

## Provenance

This page is generated from `bindings/microvms-js/index.d.ts` by TypeDoc 0.28.20 and typedoc-plugin-markdown 4.13.1, run from `site/scripts/gen-reference.mjs` on every `pnpm run sync`, so an edit made here is overwritten by the next run.

To change the page, change the doc comment in the binding's Rust source, then regenerate the declarations with `mise run dts`. `mise run dts:check` fails when the committed file no longer matches the source.