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

Type Alias: JobHandler<A, R>

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.

type JobHandler<A, R> = (job) => Effect.Effect<A, JobError, R>;

A job handler: consumes a Job, produces completion variables or a JobError.

Type Parameters

A

A extends CompleteVars

R

R

Parameters

job

Job

Returns

Effect.Effect<A, JobError, R>