File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,7 @@ const EnvironmentSchema = z
544544 BATCH_RATE_LIMIT_REFILL_RATE : z . coerce . number ( ) . int ( ) . default ( 100 ) ,
545545 BATCH_RATE_LIMIT_MAX : z . coerce . number ( ) . int ( ) . default ( 1200 ) ,
546546 BATCH_RATE_LIMIT_REFILL_INTERVAL : z . string ( ) . default ( "10s" ) ,
547- BATCH_CONCURRENCY_LIMIT_DEFAULT : z . coerce . number ( ) . int ( ) . default ( 10 ) ,
547+ BATCH_CONCURRENCY_LIMIT_DEFAULT : z . coerce . number ( ) . int ( ) . default ( 1 ) ,
548548
549549 REALTIME_STREAM_VERSION : z . enum ( [ "v1" , "v2" ] ) . default ( "v1" ) ,
550550 REALTIME_STREAM_MAX_LENGTH : z . coerce . number ( ) . int ( ) . default ( 1000 ) ,
@@ -948,8 +948,6 @@ const EnvironmentSchema = z
948948 // Global rate limit: max items processed per second across all consumers
949949 // If not set, no global rate limiting is applied
950950 BATCH_QUEUE_GLOBAL_RATE_LIMIT : z . coerce . number ( ) . int ( ) . positive ( ) . optional ( ) ,
951- // Processing concurrency: max concurrent batch items being processed per environment
952- BATCH_CONCURRENCY_DEFAULT_CONCURRENCY : z . coerce . number ( ) . int ( ) . default ( 1 ) ,
953951
954952 ADMIN_WORKER_ENABLED : z . string ( ) . default ( process . env . WORKER_ENABLED ?? "true" ) ,
955953 ADMIN_WORKER_CONCURRENCY_WORKERS : z . coerce . number ( ) . int ( ) . default ( 2 ) ,
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ function createRunEngine() {
176176 consumerIntervalMs : env . BATCH_QUEUE_CONSUMER_INTERVAL_MS ,
177177 // Default processing concurrency when no specific limit is set
178178 // This is overridden per-batch based on the plan type at batch creation
179- defaultConcurrency : env . BATCH_CONCURRENCY_DEFAULT_CONCURRENCY ,
179+ defaultConcurrency : env . BATCH_CONCURRENCY_LIMIT_DEFAULT ,
180180 // Optional global rate limiter - limits max items/sec processed across all consumers
181181 globalRateLimiter : env . BATCH_QUEUE_GLOBAL_RATE_LIMIT
182182 ? createBatchGlobalRateLimiter ( env . BATCH_QUEUE_GLOBAL_RATE_LIMIT )
You can’t perform that action at this time.
0 commit comments