Automattic / kue

Kue is a priority job queue backed by redis, built for node.js.
http://automattic.github.io/kue
MIT License
9.46k stars 867 forks source link

error: when backoff value is object #1156

Closed sirajabbas closed 6 years ago

sirajabbas commented 6 years ago

I am getting an error as

node_redis: Deprecated: The HSET command contains a argument of type Object.
This is converted to "[object Object]" by using .toString() now and will return an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.

when backoff is as follows instead of true or false values.

queueJobs.create('delayed_job', data)
.priority('high')
.attempts(attempts ? attempts : 5)
.backoff({delay: 60*1000, type:'fixed'} )
.removeOnComplete(true)
.save()