Increase max stalled count in job queue
This commit is contained in:
parent
14f2b3ad11
commit
4a9e71c2b1
|
@ -64,7 +64,10 @@ class JobQueue {
|
||||||
this.jobRedisPrefix = 'bull-' + CONFIG.WEBSERVER.HOST
|
this.jobRedisPrefix = 'bull-' + CONFIG.WEBSERVER.HOST
|
||||||
const queueOptions = {
|
const queueOptions = {
|
||||||
prefix: this.jobRedisPrefix,
|
prefix: this.jobRedisPrefix,
|
||||||
redis: Redis.getRedisClient()
|
redis: Redis.getRedisClient(),
|
||||||
|
settings: {
|
||||||
|
maxStalledCount: 10 // transcoding could be long, so jobs can often be interrupted by restarts
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const handlerName of Object.keys(handlers)) {
|
for (const handlerName of Object.keys(handlers)) {
|
||||||
|
|
Loading…
Reference in New Issue