@camunda8/sdk
    Preparing search index...

    Class CamundaJobWorker<VariablesDto, CustomHeadersDto>

    Type Parameters

    Hierarchy

    Index

    Constructors

    Properties

    capacity: number
    currentlyActiveJobCount: number = 0
    log: Logger
    logMeta: () => {
        capacity: number;
        currentload: number;
        pollIntervalMs: number;
        type: string;
        worker: string;
    }
    stopping: boolean = false

    Methods

    • Stops the Job Worker polling for more jobs. If await this call, and it will return as soon as all currently active jobs are completed. The deadline for all currently active jobs to complete is 30s by default. If the active jobs do not complete by the deadline, this method will throw.

      Parameters

      • deadlineMs: number = 30000

      Returns Promise<unknown>