> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# ScheduledRun

> Interface exported by @botmesh/core.

Defined in: [core/types.ts:392](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L392)

One occurrence of a durable task, passed to its handler.

## Properties

### taskId

```ts theme={null}
taskId: string;
```

Defined in: [core/types.ts:394](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L394)

The task's [DurableTaskOptions.id](https://botmesh.afaya.com.co/api/core/interfaces/DurableTaskOptions.md#id) (without the store namespace).

***

### scheduledAt

```ts theme={null}
scheduledAt: Date;
```

Defined in: [core/types.ts:396](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L396)

The slot this run covers (not the wall clock at which it started).

***

### occurrenceKey

```ts theme={null}
occurrenceKey: string;
```

Defined in: [core/types.ts:401](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L401)

`${taskId}@${scheduledAt.toISOString()}`: stable per occurrence, so a run retried
after a crash or a lost lease reuses it. Use it as an idempotency key.

***

### fencingToken

```ts theme={null}
fencingToken: number;
```

Defined in: [core/types.ts:406](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L406)

Fencing token of this claim: strictly increasing per task id (also across deletes).
Pass it downstream to reject stale writes. The runs of one catch-up share their claim.

***

### missed

```ts theme={null}
missed: boolean;
```

Defined in: [core/types.ts:408](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L408)

`true` when the run comes from the `'run-once'`/`'catch-up'` missed-run policy.

***

### signal

```ts theme={null}
signal: AbortSignal;
```

Defined in: [core/types.ts:410](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L410)

Aborted when the scheduler stops or the lease on this occurrence is lost.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.