File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -717,6 +717,11 @@ const EnvironmentSchema = z.object({
717
717
COMMON_WORKER_REDIS_TLS_DISABLED : z . string ( ) . default ( process . env . REDIS_TLS_DISABLED ?? "false" ) ,
718
718
COMMON_WORKER_REDIS_CLUSTER_MODE_ENABLED : z . string ( ) . default ( "0" ) ,
719
719
720
+ BATCH_TRIGGER_PROCESS_JOB_VISIBILITY_TIMEOUT_MS : z . coerce
721
+ . number ( )
722
+ . int ( )
723
+ . default ( 60_000 * 5 ) , // 5 minutes
724
+
720
725
BATCH_TRIGGER_WORKER_ENABLED : z . string ( ) . default ( process . env . WORKER_ENABLED ?? "true" ) ,
721
726
BATCH_TRIGGER_WORKER_CONCURRENCY_WORKERS : z . coerce . number ( ) . int ( ) . default ( 2 ) ,
722
727
BATCH_TRIGGER_WORKER_CONCURRENCY_TASKS_PER_WORKER : z . coerce . number ( ) . int ( ) . default ( 10 ) ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function initializeWorker() {
34
34
attemptCount : z . number ( ) . int ( ) ,
35
35
strategy : z . enum ( [ "sequential" , "parallel" ] ) ,
36
36
} ) ,
37
- visibilityTimeoutMs : 60_000 ,
37
+ visibilityTimeoutMs : env . BATCH_TRIGGER_PROCESS_JOB_VISIBILITY_TIMEOUT_MS ,
38
38
retry : {
39
39
maxAttempts : 5 ,
40
40
} ,
@@ -49,7 +49,7 @@ function initializeWorker() {
49
49
parentRunId : z . string ( ) . optional ( ) ,
50
50
resumeParentOnCompletion : z . boolean ( ) . optional ( ) ,
51
51
} ) ,
52
- visibilityTimeoutMs : 60_000 ,
52
+ visibilityTimeoutMs : env . BATCH_TRIGGER_PROCESS_JOB_VISIBILITY_TIMEOUT_MS ,
53
53
retry : {
54
54
maxAttempts : 5 ,
55
55
} ,
You can’t perform that action at this time.
0 commit comments