Skip to content

Commit f9c3f82

Browse files
committed
warn if dequeue interval > idle dequeue interval
1 parent f103f02 commit f9c3f82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/supervisor/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ class ManagedSupervisor {
112112
}
113113
}
114114

115+
if (env.TRIGGER_DEQUEUE_INTERVAL_MS > env.TRIGGER_DEQUEUE_IDLE_INTERVAL_MS) {
116+
this.logger.warn(
117+
`⚠️ TRIGGER_DEQUEUE_INTERVAL_MS (${env.TRIGGER_DEQUEUE_INTERVAL_MS}) is greater than TRIGGER_DEQUEUE_IDLE_INTERVAL_MS (${env.TRIGGER_DEQUEUE_IDLE_INTERVAL_MS}) - did you mix them up?`
118+
);
119+
}
120+
115121
this.workerSession = new SupervisorSession({
116122
workerToken: env.TRIGGER_WORKER_TOKEN,
117123
apiUrl: env.TRIGGER_API_URL,

0 commit comments

Comments
 (0)