File tree Expand file tree Collapse file tree 2 files changed +273
-128
lines changed
Expand file tree Collapse file tree 2 files changed +273
-128
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,13 @@ export const env = createEnv({
180180 EXECUTION_TIMEOUT_ASYNC_TEAM : z . string ( ) . optional ( ) . default ( '5400' ) , // 90 minutes
181181 EXECUTION_TIMEOUT_ASYNC_ENTERPRISE : z . string ( ) . optional ( ) . default ( '5400' ) , // 90 minutes
182182
183+ // Isolated-VM Worker Pool Configuration
184+ IVM_POOL_SIZE : z . string ( ) . optional ( ) . default ( '4' ) , // Max worker processes in pool
185+ IVM_MAX_CONCURRENT : z . string ( ) . optional ( ) . default ( '10000' ) , // Max concurrent executions globally
186+ IVM_MAX_PER_WORKER : z . string ( ) . optional ( ) . default ( '2500' ) , // Max concurrent executions per worker
187+ IVM_WORKER_IDLE_TIMEOUT_MS : z . string ( ) . optional ( ) . default ( '60000' ) , // Worker idle cleanup timeout (ms)
188+ IVM_QUEUE_TIMEOUT_MS : z . string ( ) . optional ( ) . default ( '300000' ) , // Max queue wait before rejection (ms)
189+
183190 // Knowledge Base Processing Configuration - Shared across all processing methods
184191 KB_CONFIG_MAX_DURATION : z . number ( ) . optional ( ) . default ( 600 ) , // Max processing duration in seconds (10 minutes)
185192 KB_CONFIG_MAX_ATTEMPTS : z . number ( ) . optional ( ) . default ( 3 ) , // Max retry attempts
You can’t perform that action at this time.
0 commit comments