Skip to content

Commit

Permalink
Explicitly set Kue timer config values
Browse files Browse the repository at this point in the history
  • Loading branch information
willroberts committed Sep 27, 2022
1 parent 519235b commit 8ddd975
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/redis/r-jobs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ module.exports = Jobs = kue.createQueue(
port: config.get("redis.port")
host: config.get("redis.ip")
auth: config.get("redis.password")
# Promotion options determine the behavior of Kue's internal timers:
# https://github.com/Automattic/kue/blob/v0.11.6/lib/kue.js#L146L157
promotion:
timeout: 1000 # Default value.
lockTtl: 2000 # Default value.
limit: 1000 # Default value.
)

0 comments on commit 8ddd975

Please sign in to comment.