We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f2a0e6 commit 531caadCopy full SHA for 531caad
workers/submit.js
@@ -60,6 +60,8 @@ const EENGINE_TIMEOUT = getDuration(readEnvValue('EENGINE_TIMEOUT') || config.se
60
61
const SUBMIT_QC = (readEnvValue('EENGINE_SUBMIT_QC') && Number(readEnvValue('EENGINE_SUBMIT_QC'))) || config.queues.submit || 1;
62
63
+const SUBMIT_DELAY = getDuration(readEnvValue('EENGINE_SUBMIT_DELAY') || config.submitDelay) || null;
64
+
65
let callQueue = new Map();
66
let mids = 0;
67
@@ -325,7 +327,14 @@ const submitWorker = new Worker(
325
327
},
326
328
Object.assign(
329
{
- concurrency: SUBMIT_QC
330
+ concurrency: SUBMIT_QC,
331
332
+ limiter: SUBMIT_DELAY
333
+ ? {
334
+ max: 1,
335
+ duration: SUBMIT_DELAY
336
+ }
337
+ : null
338
339
queueConf
340
)
0 commit comments