Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Increase max stalled count in job queue

Chocobozzz4a9e71c2b1ef
diff --git a/server/lib/job-queue/job-queue.ts b/server/lib/job-queue/job-queue.ts
index 157c57ba99..8ff0c169e0 100644
--- a/server/lib/job-queue/job-queue.ts
+++ b/server/lib/job-queue/job-queue.ts
@@ -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)) {