Browse Source

Increase max stalled count in job queue

tags/v1.0.0-beta.10.pre.3
Chocobozzz 4 years ago
parent
commit
4a9e71c2b1
No known key found for this signature in database GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      server/lib/job-queue/job-queue.ts

+ 4
- 1
server/lib/job-queue/job-queue.ts 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)) {


Loading…
Cancel
Save