Skip to main content

Interface: WorkerInterceptors

worker.WorkerInterceptors

Structure for passing in Worker interceptors via WorkerOptions

Properties

activityInbound

Optional activityInbound: ActivityInboundCallsInterceptorFactory[]

List of factory functions returning ActivityInboundCallsInterceptors


workflowModules

Optional workflowModules: string[]

List of modules to search for Workflow interceptors in

  • Modules should export an interceptors variable of type WorkflowInterceptorsFactory
  • Workflow interceptors run in the Workflow isolate

NOTE: This option is not used if Worker is provided with pre-built bundle (workflowBundle).