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

TTL: reinsert #1207

Open AdolfVonKleist opened 5 years ago

AdolfVonKleist commented 5 years ago

I am interested in recommended usage approach for reinsertion of a job on TTL expiry, where the reason is failure of the user app to call 'done' in time. This is mentioned in several other issues, but I think the usage case I have is slightly different.

We are using kue to manage human jobs. In this case, we have a queue organized around pieces of work identified by properties, e.g. [morning, food], [evening, entertainment]. Workers pull jobs from qualified queues, but if they abandon this work, the job should be returned to the related queue on expiry.

What would be the recommended usage approach for the above scenario?