diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-30 19:18:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-30 19:18:01 +0200 |
commit | 4a9e71c2b1ef57de01cd04984348b3957ebbc21d (patch) | |
tree | 4ec58d7ca93d2ce405fa7d51320b1175570cf222 | |
parent | 14f2b3ad1145595190ec515b3d8b23603d01281c (diff) | |
download | PeerTube-4a9e71c2b1ef57de01cd04984348b3957ebbc21d.tar.gz PeerTube-4a9e71c2b1ef57de01cd04984348b3957ebbc21d.tar.zst PeerTube-4a9e71c2b1ef57de01cd04984348b3957ebbc21d.zip |
Increase max stalled count in job queue
-rw-r--r-- | server/lib/job-queue/job-queue.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/job-queue/job-queue.ts b/server/lib/job-queue/job-queue.ts index 157c57ba9..8ff0c169e 100644 --- a/server/lib/job-queue/job-queue.ts +++ b/server/lib/job-queue/job-queue.ts | |||
@@ -64,7 +64,10 @@ class JobQueue { | |||
64 | this.jobRedisPrefix = 'bull-' + CONFIG.WEBSERVER.HOST | 64 | this.jobRedisPrefix = 'bull-' + CONFIG.WEBSERVER.HOST |
65 | const queueOptions = { | 65 | const queueOptions = { |
66 | prefix: this.jobRedisPrefix, | 66 | prefix: this.jobRedisPrefix, |
67 | redis: Redis.getRedisClient() | 67 | redis: Redis.getRedisClient(), |
68 | settings: { | ||
69 | maxStalledCount: 10 // transcoding could be long, so jobs can often be interrupted by restarts | ||
70 | } | ||
68 | } | 71 | } |
69 | 72 | ||
70 | for (const handlerName of Object.keys(handlers)) { | 73 | for (const handlerName of Object.keys(handlers)) { |