Fix job queue backoff

pull/267/head
Chocobozzz 2018-01-30 15:51:55 +01:00
parent 31b5a25591
commit 802dbc32a3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -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)