Class ZBWorker<WorkerInputVariables, CustomHeaderShape, WorkerOutputVariables>

Type Parameters

  • WorkerInputVariables
  • CustomHeaderShape
  • WorkerOutputVariables

Hierarchy (view full)

Constructors

Properties

activeJobs: number = 0
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>

  • Type Parameters

    • K extends EventKey<{
          close: "close";
          connectionError: "connectionError";
          ready: "ready";
          unknown: "unknown";
      }>

    Parameters

    • eventName: K
    • Optional params: {
          close: "close";
          connectionError: "connectionError";
          ready: "ready";
          unknown: "unknown";
      }[K]

    Returns void

Generated using TypeDoc