---
title: "ExecConfig"
sidebar_label: "ExecConfig"
description: "The clika_runtime.runtime ExecConfig class."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->


## `max_active_sessions` (property)

Concurrent-session ceiling (1 = serial).

## `max_batch` (property)

Sessions per step at most (0 = engine default).

## `max_queued` (property)

In-flight cap for backpressure (0 = unbounded).

## `step_token_budget` (property)

Cap on the tokens launched per step, summed over the admitted sessions (0 = unbounded); the first admitted session is exempt so progress is always made.

## `stream` (property)

The stream the node runs on, or None for a fresh asynchronous stream created for the node.

## `work_budget` (property)

Per-step work cap (0 = unbounded).

## `__init__`

```python
__init____init__(self, *, max_batch: int = 0, work_budget: int = 0, step_token_budget: int = 0, max_active_sessions: int = 1, max_queued: int = 0, stream: clika_runtime._core.Stream | None = None) -> None
```

__init__(self, *, max_batch: int = 0, work_budget: int = 0, step_token_budget: int = 0, max_active_sessions: int = 1, max_queued: int = 0, stream: clika_runtime._core.Stream | None = None) -> None

One node's execution knobs; zero means the engine default (max_active_sessions=1 runs sessions serially). `stream` is the stream the node runs on; None creates an asynchronous stream for the node. Pass a device's default stream only to opt into synchronous execution.
