]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix job queue backoff
authorChocobozzz <me@florianbigard.com>
Tue, 30 Jan 2018 14:51:55 +0000 (15:51 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 30 Jan 2018 14:51:55 +0000 (15:51 +0100)
server/lib/job-queue/job-queue.ts

index 3f176f896064ba19e3ed3c3999054e28a9775824..e8f6c36203f7c8d81fb3633fd520c24dc49eab56 100644 (file)
@@ -72,7 +72,7 @@ class JobQueue {
         .create(obj.type, obj.payload)
         .priority(priority)
         .attempts(JOB_ATTEMPTS[obj.type])
-        .backoff({ type: 'exponential' })
+        .backoff({ delay: 60 * 1000, type: 'exponential' })
         .save(err => {
           if (err) return rej(err)