We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e5277d commit 0f6b0f1Copy full SHA for 0f6b0f1
2 files changed
apps/webapp/app/env.server.ts
@@ -312,6 +312,10 @@ const EnvironmentSchema = z
312
.number()
313
.int()
314
.default(60 * 1000 * 8), // 8 minutes
315
+ DEPLOY_QUEUE_TIMEOUT_MS: z.coerce
316
+ .number()
317
+ .int()
318
+ .default(60 * 1000 * 15), // 15 minutes
319
320
OBJECT_STORE_BASE_URL: z.string().optional(),
321
OBJECT_STORE_ACCESS_KEY_ID: z.string().optional(),
apps/webapp/app/v3/services/initializeDeployment.server.ts
@@ -138,7 +138,11 @@ export class InitializeDeploymentService extends BaseService {
138
deployment.id,
139
deployment.status,
140
"Building timed out",
141
- new Date(Date.now() + env.DEPLOY_TIMEOUT_MS)
+ new Date(
142
+ Date.now() + deployment.status === "PENDING"
143
+ ? env.DEPLOY_QUEUE_TIMEOUT_MS
144
+ : env.DEPLOY_TIMEOUT_MS
145
+ )
146
);
147
148
return {
0 commit comments