temporalio.worker.Interceptor

Class that will be instantiated and used to intercept workflows.

This method is called on workflow start. The class must have the same init as WorkflowInboundInterceptor.__init__. The input can be altered to do things like add additional extern functions.

Parameters
input:WorkflowInterceptorClassInputInput to this method that contains mutable properties that can be altered by this interceptor.
Returns
type[WorkflowInboundInterceptor] | NoneThe class to construct to intercept each workflow.