Automattic / kue

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

edit/update job data while processsing #1217

Open thbl opened 5 years ago

thbl commented 5 years ago

Hi Is there a way to update job data while processsing ? -tried a few methods i found on google, but they dont seam to work any more

DarkAxi0m commented 4 years ago

Did you ever find a solution to this?

Edit found i had to call save after.

 que.process(how, (job, done)=>{
  job.data.more= stuff;
  job.save();
  done();
});