Skip to main content

Interface: ActivityInboundCallsInterceptor

worker.ActivityInboundCallsInterceptor

Implement any of these methods to intercept Activity inbound calls

Implemented by

Properties

execute

Optional execute: (input: ActivityExecuteInput, next: OmitLastParam<(input: ActivityExecuteInput, next: OmitLastParam<...>) => Promise<unknown>>) => Promise<unknown>

Type declaration

▸ (input, next): Promise<unknown>

Called when Activity function is executed

Parameters
NameType
inputActivityExecuteInput
nextOmitLastParam<(input: ActivityExecuteInput, next: OmitLastParam<...>) => Promise<unknown>>
Returns

Promise<unknown>

result of Activity function