Increase max stalled count in job queue

pull/837/head
Chocobozzz 2018-07-30 19:18:01 +02:00
parent 14f2b3ad11
commit 4a9e71c2b1
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,10 @@ class JobQueue {
this.jobRedisPrefix = 'bull-' + CONFIG.WEBSERVER.HOST
const queueOptions = {
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)) {