@camunda8/orchestration-cluster-api
    Preparing search index...

    Interface EffectWorkerConfig<A, R>

    interface EffectWorkerConfig<A extends CompleteVars, R = never> {
        activationRetrySchedule?: Schedule<unknown, DomainError, never, R>;
        concurrency?: number | "unbounded";
        fetchVariables?: readonly string[];
        handler: JobHandler<A, R>;
        handlerRetrySchedule?: Schedule<unknown, JobError, never, R>;
        jobTimeout?: Input;
        maxJobsToActivate?: number;
        pollInterval?: Input;
        requestTimeout?: Input;
        type: string;
        workerName?: string;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    activationRetrySchedule?: Schedule<unknown, DomainError, never, R>

    Schedule used to back off and retry a failed activation request (transport outage, broker restart, transient server error). Runs on the Effect Clock. When omitted, an activation failure fails the stream.

    concurrency?: number | "unbounded"

    Max jobs processed concurrently (handler parallelism / backpressure). The activation loop will not pull faster than handlers drain, and the activation batch is capped to this value (when it is a finite number) so the worker never leases more jobs than it can process at once. Default: the value of ActivateJobsStreamOptions.maxJobsToActivate (or 10).

    fetchVariables?: readonly string[]

    Restrict activation to these variable names.

    handler: JobHandler<A, R>

    The Effect job handler.

    handlerRetrySchedule?: Schedule<unknown, JobError, never, R>

    Schedule used to retry the handler in-process on a RetryableJobError before the job is failed back to the broker. Runs on the Effect Clock (virtual under TestClock). A TerminalJobError is never retried.

    jobTimeout?: Input

    Per-job activation lock timeout (server-side). Default 60 seconds.

    maxJobsToActivate?: number

    Max jobs to activate per poll (the activation batch size). Default 10.

    pollInterval?: Input

    Delay between polls that returned no jobs, on the Effect Clock (so it is virtual under TestClock). A poll that returns jobs schedules the next poll immediately. Default 1 second.

    requestTimeout?: Input

    Long-poll request timeout. 0 (the default) lets the broker hold the request for its configured default; a negative value returns immediately when idle.

    type: string

    The job type to activate.

    workerName?: string

    Worker name recorded on the activation request. Defaults to effect-worker-<type>-<n>, where <n> is an incrementing per-process counter.