grantcarthew / node-rethinkdb-job-queue

A persistent job or task queue backed by RethinkDB.
https://github.com/grantcarthew/node-rethinkdb-job-queue/wiki
MIT License
157 stars 16 forks source link

queue.process: how is dateEnable set when passing partially completed job to next #79

Closed TomKaltz closed 6 years ago

TomKaltz commented 6 years ago

ref: https://github.com/grantcarthew/node-rethinkdb-job-queue/wiki/Queue.process#partly-completed-or-delayed-job

Seems like dateEnable is set to the future but I can't figure out how it is calculated. Does it add the timeout value to current time?

grantcarthew commented 6 years ago

Hi Tom, You have to set the dateEnable yourself. No tricks to it. If you want the job to run again as soon as you save it back to the queue, then don't change the dateEnable value. If you want the job to be delayed, set the dateEnable value to a future date.

Hope that clears it up for you mate.