Control how long your apps stay running before shutting down.
keep_warm_seconds
flag in your deployment trigger.
For example, by adding a keep_warm_seconds=300
argument to an endpoint, your app will stay running for 5 minutes before shutting off:
keep_warm_seconds
is set in your deployment, it will count as billable
usage.min_containers
unless you’re comfortable paying for usage 24/7.min_containers
field.
By setting min_containers=1
, 1 container will always remain running until the deployment is stopped.
min_containers
set, make sure to explicitly
stop the previous deployment versions in order to avoid running containers
that you are no longer using./warmup
to the end of your deployment URL:
/warmup
to the end of any of your deployment APIs to warm-up your container:
Deployment Type | Container Keep Warm Duration |
---|---|
Endpoints/ASGI/Realtime | 180s |
Task Queues | 10s |
Pods | 600s |