Skip to content

Function: createLocalRunnerBuilder() ​

ts
function createLocalRunnerBuilder(options): LocalRunnerBuilder;

Defined in: node/src/builders/create-local-runner-builder.ts:18

Creates a LocalRunnerBuilder for local.runner({ id?, slots, maxDaemons? }).

Validates that slots and maxDaemons are positive integers, defaults id to 'default-runner' and maxDaemons to slots, and freezes both the passive NodeRunnerNode AST and the returned builder wrapper.

Parameters ​

ParameterTypeDescription
optionsLocalRunnerOptionsConcurrency slot and daemon pool options.

Returns ​

LocalRunnerBuilder

Frozen local runner pool builder.

Throws ​

If id is empty or slots / maxDaemons is not a positive integer.

Released under the MIT License.