aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-30 19:18:01 +0200
committerChocobozzz <me@florianbigard.com>2018-07-30 19:18:01 +0200
commit4a9e71c2b1ef57de01cd04984348b3957ebbc21d (patch)
tree4ec58d7ca93d2ce405fa7d51320b1175570cf222
parent14f2b3ad1145595190ec515b3d8b23603d01281c (diff)
downloadPeerTube-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.ts5
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)) {