UNPKG

836 BJavaScriptView Raw
1'use strict';
2
3module.exports = {
4 stallInterval: 5000,
5 // Avoid scheduling timers for further out than this period of time. The
6 // workers will all poll on this interval, at minimum, to find new delayed
7 // jobs.
8 nearTermWindow: 20 * 60 * 1000,
9 // Avoids rapid churn during processing of nearly-concurrent events.
10 delayedDebounce: 1000,
11 prefix: 'bq',
12 isWorker: true,
13 getEvents: true,
14 ensureScripts: true,
15 activateDelayedJobs: false,
16 sendEvents: true,
17 storeJobs: true,
18 removeOnSuccess: false,
19 removeOnFailure: false,
20 redisScanCount: 100,
21
22 // quitCommandClient is dependent on whether the redis setting was an actual
23 // redis client, or just configuration options to create such a client.
24
25 // Method-specific defaults.
26 '#close': {
27 timeout: 5000
28 },
29
30 '#process': {
31 concurrency: 1
32 }
33};