forked from bee-queue/bee-queue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.js
More file actions
33 lines (29 loc) · 836 Bytes
/
Copy pathdefaults.js
File metadata and controls
33 lines (29 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';
module.exports = {
stallInterval: 5000,
// Avoid scheduling timers for further out than this period of time. The
// workers will all poll on this interval, at minimum, to find new delayed
// jobs.
nearTermWindow: 20 * 60 * 1000,
// Avoids rapid churn during processing of nearly-concurrent events.
delayedDebounce: 1000,
prefix: 'bq',
isWorker: true,
getEvents: true,
ensureScripts: true,
activateDelayedJobs: false,
sendEvents: true,
storeJobs: true,
removeOnSuccess: false,
removeOnFailure: false,
redisScanCount: 100,
// quitCommandClient is dependent on whether the redis setting was an actual
// redis client, or just configuration options to create such a client.
// Method-specific defaults.
'#close': {
timeout: 5000
},
'#process': {
concurrency: 1
}
};