Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

baseUrl

baseUrl: string

Url to connect e.g localhost:26500

Optional fetchVariables

fetchVariables: string[]

Constrain payload to these keys only.

Optional loglevel

loglevel: Loglevel

Optional maxActiveJobs

maxActiveJobs: number

Max concurrent tasks for this worker. Default 32.

Optional plugins

plugins: IPlugins

load librairies containing workflow tasks

Optional pollInterval

pollInterval: number

Poll Interval in ms. Default 100.

Optional stdout

stdout: any

Optional timeout

timeout: number

Max ms to allow before time out of a task given to this worker. Default: 1000ms.

topicName

topicName: string

Topic name to subscribe

workerId

workerId: string

Unique worker name

Methods

Optional onConnectionErrorHandler

  • onConnectionErrorHandler(err: any): void
  • This handler is called when the worker cannot connect to the broker, or loses its connection.

    Parameters

    • err: any

    Returns void

Generated using TypeDoc