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

New feature idea: new "real-time" priority task which can pause currently running tasks #1200

Open Autom3 opened 5 years ago

Autom3 commented 5 years ago

I know this will probably not be a high priority, but here's an idea for a new feature. What do you think?

My use-case is I still want to use kue as my main task distribution system because I love it, but I want to create synchronous requests to a service (previously they were all asynchronous, api request to upload a task, then listen for a "done" on an endpoint). I want to have the user be able to send one request, and get the answer as response within a few seconds (because my process takes that long).

I would be happy to give implementing this a try, but as this is not a necessity for work, I don't know if I'll be able to invest a lot of time. But who knows, maybe one day I'll try and send you a pull request :)