Applies to:
CODE_FUNCTION_EXECUTION_TIMEOUT_S environment variable defaults to 30 seconds, which is insufficient for complex scorers.
Resolution: Set CODE_FUNCTION_EXECUTION_TIMEOUT_S on both APIHandler and AIProxy services in your deployment configuration.
Resolution Steps
For Terraform AWS deployments
Step 1: Update service_extra_env_vars
AddCODE_FUNCTION_EXECUTION_TIMEOUT_S to both APIHandler and AIProxy in your Terraform configuration.
Step 2: Apply configuration
Runterraform apply to redeploy the data plane with updated timeout settings.
For other deployment methods
Step 1: Set environment variable
AddCODE_FUNCTION_EXECUTION_TIMEOUT_S as an environment variable to both APIHandler and AIProxy services with matching values (maximum 900 seconds).