async=true query parameter to the request:
202 Accepted response containing only a run_id:
response_grace_period in cerebrium.toml. This defaults to 15 minutes — update it to match the maximum time the task needs.
Cerebrium runs the HTTP request in the background, but the function itself must still behave synchronously — it must complete its work and return a result.
Returning a response while the application is still processing causes Cerebrium to begin terminating the container. Only return once all processing is finished.
Because async calls do not return a response to the caller, the function must export any relevant data itself. Combine async execution with a webhookEndpoint to have Cerebrium automatically forward the function’s response body:
failure).