Class ZBWorker<WorkerInputVariables, CustomHeaderShape, WorkerOutputVariables>

Type Parameters

  • WorkerInputVariables
  • CustomHeaderShape
  • WorkerOutputVariables

Hierarchy (view full)

Constructors

Properties

activeJobs: number = 0
backoffTimeout: undefined | Timeout
cancelWorkflowOnException: boolean = false
grpcClient: ZBGrpc
maxJobsToActivate: number
pollCount: number = 0
taskType: string
timeout: MaybeTimeDuration
zbClient: ZeebeGrpcClient

Methods

  • Returns a promise that the worker has stopped accepting tasks and has drained all current active tasks. Will reject if you try to call it more than once.

    Parameters

    • Optional timeout: number

    Returns Promise<null>

Generated using TypeDoc