File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,10 @@ const EnvironmentSchema = z.object({
142142 CONTAINER_REGISTRY_PASSWORD : z . string ( ) . optional ( ) ,
143143 DEPLOY_REGISTRY_HOST : z . string ( ) . optional ( ) ,
144144 DEPLOY_REGISTRY_NAMESPACE : z . string ( ) . default ( "trigger" ) ,
145+ DEPLOY_TIMEOUT_MS : z . coerce
146+ . number ( )
147+ . int ( )
148+ . default ( 60 * 1000 * 8 ) , // 8 minutes
145149 OBJECT_STORE_BASE_URL : z . string ( ) . optional ( ) ,
146150 OBJECT_STORE_ACCESS_KEY_ID : z . string ( ) . optional ( ) ,
147151 OBJECT_STORE_SECRET_ACCESS_KEY : z . string ( ) . optional ( ) ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class IndexDeploymentService extends BaseService {
5050 deployment . id ,
5151 "DEPLOYING" ,
5252 "Could not index deployment in time" ,
53- new Date ( Date . now ( ) + 180_000 )
53+ new Date ( Date . now ( ) + env . DEPLOY_TIMEOUT_MS )
5454 ) ;
5555
5656 const responses = await socketIo . providerNamespace . timeout ( 30_000 ) . emitWithAck ( "INDEX" , {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export class InitializeDeploymentService extends BaseService {
6464 deployment . id ,
6565 "BUILDING" ,
6666 "Building timed out" ,
67- new Date ( Date . now ( ) + 180_000 ) // 3 minutes
67+ new Date ( Date . now ( ) + env . DEPLOY_TIMEOUT_MS )
6868 ) ;
6969
7070 const imageTag = `${ payload . namespace ?? env . DEPLOY_REGISTRY_NAMESPACE } /${
You can’t perform that action at this time.
0 commit comments