From 9f04e6630a1694e39997cd3135dca5c18b5ee95b Mon Sep 17 00:00:00 2001 From: mariekarpinska Date: Wed, 4 Nov 2026 14:18:31 -0800 Subject: [PATCH 1/4] Initialization timeout in endpoint config now --- serverless/development/optimization.mdx | 2 +- serverless/endpoints/endpoint-configurations.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/serverless/development/optimization.mdx b/serverless/development/optimization.mdx index d2642e837..a334b5754 100644 --- a/serverless/development/optimization.mdx +++ b/serverless/development/optimization.mdx @@ -40,7 +40,7 @@ Use [benchmarking](/serverless/development/benchmarking) to measure these metric -If cold start exceeds 7 minutes, the worker is marked unhealthy. Extend with `RUNPOD_INIT_TIMEOUT=800` (seconds). +If cold start exceeds 7 minutes, the worker is marked unhealthy. Extend with `RUNPOD_INIT_TIMEOUT=800` (seconds) or increase Initialization timeout in the endpoint configuration. ## Reduce cold starts diff --git a/serverless/endpoints/endpoint-configurations.mdx b/serverless/endpoints/endpoint-configurations.mdx index 8ca805168..8809bd154 100644 --- a/serverless/endpoints/endpoint-configurations.mdx +++ b/serverless/endpoints/endpoint-configurations.mdx @@ -93,7 +93,7 @@ Once an endpoint has been scaled down this way, it stays at its reduced max work ### Initialization timeout -`RUNPOD_INIT_TIMEOUT` in the endpoint configuration sets how long, in seconds, a worker can take to initialize before Runpod stops it. The default is 420 seconds. Workers are billed while they initialize. For large models that need longer to load, set a higher value. +Initialization timeout in the endpoint configuration sets how long, in seconds, a worker can take to initialize before Runpod stops it. The default is 420 seconds. Workers are billed while they initialize. For large models that need longer to load, set a higher value. ### Execution timeout From 79f95c393fbecfe904de379725a9419af7f2a5e2 Mon Sep 17 00:00:00 2001 From: mariekarpinska Date: Thu, 5 Nov 2026 12:11:02 -0800 Subject: [PATCH 2/4] docs: remove legacy initialization timeout variable --- serverless/development/optimization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverless/development/optimization.mdx b/serverless/development/optimization.mdx index a334b5754..f8d284e44 100644 --- a/serverless/development/optimization.mdx +++ b/serverless/development/optimization.mdx @@ -40,7 +40,7 @@ Use [benchmarking](/serverless/development/benchmarking) to measure these metric -If cold start exceeds 7 minutes, the worker is marked unhealthy. Extend with `RUNPOD_INIT_TIMEOUT=800` (seconds) or increase Initialization timeout in the endpoint configuration. +If cold start exceeds 7 minutes, the worker is marked unhealthy. Increase Initialization timeout in the endpoint configuration to allow more time. ## Reduce cold starts From f89db69dcd0fd7f2c35f1dc356724833d0e72ef9 Mon Sep 17 00:00:00 2001 From: mariekarpinska Date: Thu, 5 Nov 2026 13:42:04 -0800 Subject: [PATCH 3/4] docs: mention workerInitTimeout for the REST API --- serverless/endpoints/endpoint-configurations.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serverless/endpoints/endpoint-configurations.mdx b/serverless/endpoints/endpoint-configurations.mdx index 8809bd154..9c4e987e3 100644 --- a/serverless/endpoints/endpoint-configurations.mdx +++ b/serverless/endpoints/endpoint-configurations.mdx @@ -95,6 +95,8 @@ Once an endpoint has been scaled down this way, it stays at its reduced max work Initialization timeout in the endpoint configuration sets how long, in seconds, a worker can take to initialize before Runpod stops it. The default is 420 seconds. Workers are billed while they initialize. For large models that need longer to load, set a higher value. +With the REST API, set `workerInitTimeout` in milliseconds when you [create](/api-reference-v2/serverless/create-a-serverless-endpoint) or [update](/api-reference-v2/serverless/update-a-serverless-endpoint) an endpoint. + ### Execution timeout Maximum duration for a single job. When exceeded, the job fails and the worker stops. Keep enabled to prevent runaway jobs. Console default: 600s (10 min). REST v2 default: `timeout` is 300000 ms (5 min). Range: 5s to 7 days. From 5bebc361aeed77d28bc5d8906e77a2207d838a85 Mon Sep 17 00:00:00 2001 From: Marie Karpinska Date: Wed, 18 Nov 2026 13:35:53 -0800 Subject: [PATCH 4/4] docs: fix REST field and timing for initialization timeout The REST v2 field is workers.initTimeout in seconds, not workerInitTimeout in milliseconds. Also say when the timeout starts and how soon a worker is stopped after it runs out. --- serverless/endpoints/endpoint-configurations.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/serverless/endpoints/endpoint-configurations.mdx b/serverless/endpoints/endpoint-configurations.mdx index 9c4e987e3..e131e8ef9 100644 --- a/serverless/endpoints/endpoint-configurations.mdx +++ b/serverless/endpoints/endpoint-configurations.mdx @@ -93,9 +93,11 @@ Once an endpoint has been scaled down this way, it stays at its reduced max work ### Initialization timeout -Initialization timeout in the endpoint configuration sets how long, in seconds, a worker can take to initialize before Runpod stops it. The default is 420 seconds. Workers are billed while they initialize. For large models that need longer to load, set a higher value. +Initialization timeout in the endpoint configuration sets how long, in seconds, a worker can take to initialize before Runpod stops it. The default is 420 seconds. Range: 60 to 14400 seconds. Workers are billed while they initialize. For large models that need longer to load, set a higher value. -With the REST API, set `workerInitTimeout` in milliseconds when you [create](/api-reference-v2/serverless/create-a-serverless-endpoint) or [update](/api-reference-v2/serverless/update-a-serverless-endpoint) an endpoint. +The timeout starts when the worker starts, after its image and models are downloaded, and ends when the worker first reports that it is ready. A worker that runs past the timeout is stopped within about 90 seconds. + +With the REST API, set `workers.initTimeout` in seconds when you [create](/api-reference-v2/serverless/create-a-serverless-endpoint) or [update](/api-reference-v2/serverless/update-a-serverless-endpoint) an endpoint. ### Execution timeout