aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-30 15:51:55 +0100
committerChocobozzz <me@florianbigard.com>2018-01-30 15:51:55 +0100
commit802dbc32a31e6d8c6fb5a3b4a691f828680c9a21 (patch)
tree825aec259713980a1a411038ea775bfbd7367f50
parent31b5a2559102b21467343e007e17e866c0c7a643 (diff)
downloadPeerTube-802dbc32a31e6d8c6fb5a3b4a691f828680c9a21.tar.gz
PeerTube-802dbc32a31e6d8c6fb5a3b4a691f828680c9a21.tar.zst
PeerTube-802dbc32a31e6d8c6fb5a3b4a691f828680c9a21.zip
Fix job queue backoff
-rw-r--r--server/lib/job-queue/job-queue.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/job-queue/job-queue.ts b/server/lib/job-queue/job-queue.ts
index 3f176f896..e8f6c3620 100644
--- a/server/lib/job-queue/job-queue.ts
+++ b/server/lib/job-queue/job-queue.ts
@@ -72,7 +72,7 @@ class JobQueue {
72 .create(obj.type, obj.payload) 72 .create(obj.type, obj.payload)
73 .priority(priority) 73 .priority(priority)
74 .attempts(JOB_ATTEMPTS[obj.type]) 74 .attempts(JOB_ATTEMPTS[obj.type])
75 .backoff({ type: 'exponential' }) 75 .backoff({ delay: 60 * 1000, type: 'exponential' })
76 .save(err => { 76 .save(err => {
77 if (err) return rej(err) 77 if (err) return rej(err)
78 78