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({
142
142
CONTAINER_REGISTRY_PASSWORD : z . string ( ) . optional ( ) ,
143
143
DEPLOY_REGISTRY_HOST : z . string ( ) . optional ( ) ,
144
144
DEPLOY_REGISTRY_NAMESPACE : z . string ( ) . default ( "trigger" ) ,
145
+ DEPLOY_TIMEOUT_MS : z . coerce
146
+ . number ( )
147
+ . int ( )
148
+ . default ( 60 * 1000 * 8 ) , // 8 minutes
145
149
OBJECT_STORE_BASE_URL : z . string ( ) . optional ( ) ,
146
150
OBJECT_STORE_ACCESS_KEY_ID : z . string ( ) . optional ( ) ,
147
151
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 {
50
50
deployment . id ,
51
51
"DEPLOYING" ,
52
52
"Could not index deployment in time" ,
53
- new Date ( Date . now ( ) + 180_000 )
53
+ new Date ( Date . now ( ) + env . DEPLOY_TIMEOUT_MS )
54
54
) ;
55
55
56
56
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 {
64
64
deployment . id ,
65
65
"BUILDING" ,
66
66
"Building timed out" ,
67
- new Date ( Date . now ( ) + 180_000 ) // 3 minutes
67
+ new Date ( Date . now ( ) + env . DEPLOY_TIMEOUT_MS )
68
68
) ;
69
69
70
70
const imageTag = `${ payload . namespace ?? env . DEPLOY_REGISTRY_NAMESPACE } /${
You can’t perform that action at this time.
0 commit comments