pub async fn invoke_handler<P, R>(
function_name: &str,
payload: P,
state: &Arc<ExecutionState>,
op_id: &OperationIdentifier,
config: &InvokeConfig<P, R>,
logger: &Arc<dyn Logger>,
) -> Result<R, DurableError>Expand description
Invokes another durable Lambda function.
This handler implements the invoke semantics:
- Calls the target Lambda function via service client
- Handles timeout configuration
- Checkpoints invocation and result
- Propagates errors from invoked function
§Arguments
function_name- The name or ARN of the Lambda function to invokepayload- The payload to send to the functionstate- The execution state for checkpointingop_id- The operation identifierconfig- Invoke configuration (timeout, serdes)logger- Logger for structured logging
§Returns
The result from the invoked function, or an error if invocation fails.