File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,10 @@ const EnvironmentSchema = z
312312 . number ( )
313313 . int ( )
314314 . default ( 60 * 1000 * 8 ) , // 8 minutes
315+ DEPLOY_QUEUE_TIMEOUT_MS : z . coerce
316+ . number ( )
317+ . int ( )
318+ . default ( 60 * 1000 * 15 ) , // 15 minutes
315319
316320 OBJECT_STORE_BASE_URL : z . string ( ) . optional ( ) ,
317321 OBJECT_STORE_ACCESS_KEY_ID : z . string ( ) . optional ( ) ,
Original file line number Diff line number Diff line change @@ -138,7 +138,11 @@ export class InitializeDeploymentService extends BaseService {
138138 deployment . id ,
139139 deployment . status ,
140140 "Building timed out" ,
141- new Date ( Date . now ( ) + env . DEPLOY_TIMEOUT_MS )
141+ new Date (
142+ Date . now ( ) + deployment . status === "PENDING"
143+ ? env . DEPLOY_QUEUE_TIMEOUT_MS
144+ : env . DEPLOY_TIMEOUT_MS
145+ )
142146 ) ;
143147
144148 return {
You can’t perform that action at this time.
0 commit comments