mirror of https://github.com/Chocobozzz/PeerTube
Fix job queue backoff
parent
31b5a25591
commit
802dbc32a3
|
@ -72,7 +72,7 @@ class JobQueue {
|
||||||
.create(obj.type, obj.payload)
|
.create(obj.type, obj.payload)
|
||||||
.priority(priority)
|
.priority(priority)
|
||||||
.attempts(JOB_ATTEMPTS[obj.type])
|
.attempts(JOB_ATTEMPTS[obj.type])
|
||||||
.backoff({ type: 'exponential' })
|
.backoff({ delay: 60 * 1000, type: 'exponential' })
|
||||||
.save(err => {
|
.save(err => {
|
||||||
if (err) return rej(err)
|
if (err) return rej(err)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue