Skip to content

Commit

Permalink
fixed retention config for maintenance jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
timgit committed Mar 31, 2020
1 parent de0a5b6 commit a2a2051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/boss.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Boss extends EventEmitter {
async maintenanceAsync () {
const options = {
startAfter: this.maintenanceIntervalSeconds,
keepUntilSeconds: this.maintenanceIntervalSeconds * 2,
retentionSeconds: this.maintenanceIntervalSeconds * 2,
singletonKey: queues.MAINTENANCE,
retryLimit: 5,
retryBackoff: true
Expand All @@ -80,7 +80,7 @@ class Boss extends EventEmitter {
async monitorStatesAsync () {
const options = {
startAfter: this.monitorIntervalSeconds,
keepUntilSeconds: this.monitorIntervalSeconds * 2,
retentionSeconds: this.monitorIntervalSeconds * 2,
singletonKey: queues.MONITOR_STATES
}

Expand Down

0 comments on commit a2a2051

Please sign in to comment.