Skip to content

Commit 3c15d47

Browse files
fix(server): staged update preflight tolerates slow cold starts
On a heavily loaded host the staged runtime's __service-preflight could take longer than the fixed 30 s bound, so the process was killed and the remote update failed with "Could not prepare t3@<version>". Raise the bound to 3 minutes; a hung preflight still fails in bounded time. Fixes #28198 Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent c54182b commit 3c15d47

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/server/src/cloud/selfUpdate.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ import { decodeServicePreflightResult } from "./servicePreflight.ts";
3939
import * as ServiceLauncherClient from "./serviceLauncherClient.ts";
4040
import { isExactServiceVersion, SERVICE_LAUNCHER_PROTOCOL } from "./serviceProtocol.ts";
4141

42-
const PREFLIGHT_TIMEOUT = Duration.seconds(30);
42+
// A staged runtime's cold start can take over a minute on a loaded, swapping host.
43+
const PREFLIGHT_TIMEOUT = Duration.minutes(3);
4344

4445
export function resolveServerSelfUpdateCapability(input: {
4546
readonly desktopManaged: boolean;

0 commit comments

Comments
 (0)