# Interface WaveSchedulerConfig

Configuration for the wave scheduler.

interface WaveSchedulerConfig {
maxConcurrency: number;
maxOutputChars: number;
maxTotalTokens: number;
abortOnFailure: boolean;
taskTimeoutMs: number;
onWaveComplete?: (
waveIndex: number,
results: readonly WaveTaskResult[],
cumulativeTokens: number,
) => Promise<void>;
}

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:19

##### Index

### Properties

maxConcurrency
maxOutputChars
maxTotalTokens
abortOnFailure
taskTimeoutMs
onWaveComplete?

## Properties

### `Readonly` maxConcurrency

maxConcurrency: number

Maximum number of tasks to execute concurrently in one wave. Default: 4.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:21

### `Readonly` maxOutputChars

maxOutputChars: number

Maximum output length (chars) per task result. Default: 2000.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:23

### `Readonly` maxTotalTokens

maxTotalTokens: number

Maximum total token budget across all waves. 0 = unlimited. Default: 0.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:25

### `Readonly` abortOnFailure

abortOnFailure: boolean

Whether to abort remaining waves on first task failure. Default: false.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:27

### `Readonly` taskTimeoutMs

taskTimeoutMs: number

Timeout per individual task in ms. Default: 60000.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:29

### `Optional` `Readonly` onWaveComplete

onWaveComplete?: (
waveIndex: number,
results: readonly WaveTaskResult[],
cumulativeTokens: number,
) => Promise<void>

Optional callback invoked after each wave completes. Used for checkpointing.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:31