Class CamundaJobWorker<VariablesDto, CustomHeadersDto>

Type Parameters

Hierarchy

Constructors

Properties

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

Type declaration

    • (): {
          capacity: number;
          currentload: number;
          pollIntervalMs: number;
          type: string;
          worker: string;
      }
    • Returns {
          capacity: number;
          currentload: number;
          pollIntervalMs: number;
          type: string;
          worker: string;
      }

      • capacity: number
      • currentload: number
      • pollIntervalMs: number
      • type: string
      • worker: string
loopHandle?: Timeout
pollInterval: number
restClient: CamundaRestClient

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>

Generated using TypeDoc