Skip to content

Invoke

Operation module: async_durable_execution._operation.invoke.

Use invoke() to call another qualified durable Lambda function and wait for its durable result.

User-facing durable chained-invoke operation.

Functions:

invoke

invoke(
    function_name: str,
    payload: P,
    *,
    name: str | None = None,
    serdes_payload: SerDes[P] | None = None,
    serdes_result: SerDes[R] | None = None,
    tenant_id: str | None = None,
) -> Task[R]

Invoke another durable Lambda function and wait for its durable result.

Parameters:

Name Type Description Default
function_name str

Qualified Lambda function name or ARN to invoke.

required
payload P

Payload to send to the invoked function.

required
name str | None

Optional durable operation name.

None
serdes_payload SerDes[P] | None

Optional serializer for the invocation payload.

None
serdes_result SerDes[R] | None

Optional deserializer for the invocation result.

None
tenant_id str | None

Optional tenant identifier for the chained invocation.

None