For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.10

Function: workerLayer()

Opt-In Subpath

The Effect API is an opt-in subpath (@camunda8/orchestration-cluster-api/effect) and requires the optional effect peer dependency. The main . entry stays Promise-based and pulls in zero Effect at runtime.

function workerLayer<A, R>(config): Layer<never, never, CamundaEffect | R>;

A Layer that runs a Camunda Effect worker for the layer's lifetime. Compose it with the /effect client layer (which provides its CamundaEffect dependency) plus a Layer for the handler's own requirements R.

Type Parameters​

A​

A extends CompleteVars

R​

R = never

Parameters​

config​

EffectWorkerConfig<A, R>

Returns​

Layer<never, never, CamundaEffect | R>