]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Increase max stalled count in job queue
authorChocobozzz <me@florianbigard.com>
Mon, 30 Jul 2018 17:18:01 +0000 (19:18 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 30 Jul 2018 17:18:01 +0000 (19:18 +0200)
server/lib/job-queue/job-queue.ts

index 157c57ba993f14514edf6b7f9c3dfaf6586e4b0b..8ff0c169e092276543b2eaa5dfbaf6aa12906787 100644 (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)) {