projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14f2b3a
)
Increase max stalled count in job queue
author
Chocobozzz
<me@florianbigard.com>
Mon, 30 Jul 2018 17:18:01 +0000
(19:18 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Mon, 30 Jul 2018 17:18:01 +0000
(19:18 +0200)
server/lib/job-queue/job-queue.ts
patch
|
blob
|
history
diff --git
a/server/lib/job-queue/job-queue.ts
b/server/lib/job-queue/job-queue.ts
index 157c57ba993f14514edf6b7f9c3dfaf6586e4b0b..8ff0c169e092276543b2eaa5dfbaf6aa12906787 100644
(file)
--- 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)) {