mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
ebf0c47c25
* Upgrade standard.js # Conflicts: # yarn.lock * Upgrade babel-eslint
62 lines
1.8 KiB
JavaScript
62 lines
1.8 KiB
JavaScript
exports['default'] = {
|
|
tasks: (api) => {
|
|
return {
|
|
// Should this node run a scheduler to promote delayed tasks?
|
|
scheduler: false,
|
|
// what queues should the taskProcessors work?
|
|
queues: ['*'],
|
|
// Logging levels of task workers
|
|
workerLogging: {
|
|
failure: 'error', // task failure
|
|
success: 'info', // task success
|
|
start: 'info',
|
|
end: 'info',
|
|
cleaning_worker: 'info',
|
|
poll: 'debug',
|
|
job: 'debug',
|
|
pause: 'debug',
|
|
internalError: 'error',
|
|
multiWorkerAction: 'debug'
|
|
},
|
|
// Logging levels of the task scheduler
|
|
schedulerLogging: {
|
|
start: 'info',
|
|
end: 'info',
|
|
poll: 'debug',
|
|
enqueue: 'debug',
|
|
reEnqueue: 'debug',
|
|
working_timestamp: 'debug',
|
|
transferred_job: 'debug'
|
|
},
|
|
// how long to sleep between jobs / scheduler checks
|
|
timeout: 5000,
|
|
// at minimum, how many parallel taskProcessors should this node spawn?
|
|
// (have number > 0 to enable, and < 1 to disable)
|
|
minTaskProcessors: 0,
|
|
// at maximum, how many parallel taskProcessors should this node spawn?
|
|
maxTaskProcessors: 0,
|
|
// how often should we check the event loop to spawn more taskProcessors?
|
|
checkTimeout: 500,
|
|
// how many ms would constitue an event loop delay to halt taskProcessors spawning?
|
|
maxEventLoopDelay: 5,
|
|
// When we kill off a taskProcessor, should we disconnect that local redis connection?
|
|
toDisconnectProcessors: true,
|
|
// Customize Resque primitives, replace null with required replacement.
|
|
resque_overrides: {
|
|
queue: null,
|
|
multiWorker: null,
|
|
scheduler: null
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
exports.test = {
|
|
tasks: (api) => {
|
|
return {
|
|
timeout: 100,
|
|
checkTimeout: 50
|
|
}
|
|
}
|
|
}
|