kue icon indicating copy to clipboard operation
kue copied to clipboard

Wildcard support for job processing

Open h2non opened this issue 10 years ago • 3 comments

I didn't see this in old issues, so I just want to propose it:

queue.process('notifications:*', function (job, done) {
  email(job.data.to, done)
})

Alternatively, any idea about getting a similar approach with the existing features?

h2non avatar Apr 22 '15 22:04 h2non

this has been discussed before @h2non and was one of my very first proposals early 2012, However we should remember that Kue is a job queue, not a MOM, nor a pub/sub framework. this is not also easy to implement wilcard job pullers on redis. Can you point me to a job/task queue with wilcard feature (especially on redis) ?

Alternatively, any idea about getting a similar approach with the existing features?

I myself always rethink my problem domain, and redesign it with in-hand tools and frameworks. there should exist other ways of implementing what you want. So what dya need this for actually?

behrad avatar Apr 23 '15 05:04 behrad

I join this feature request.

So what dya need this for actually?

@sebastianarena answers your question in this issue https://github.com/OptimalBits/bull/issues/1081#issue-368697657

If you could help with redesigning such type of task, i would be very glad to hear the solution :)

dilame avatar Feb 05 '19 01:02 dilame

any update on this issue ?

also: is it currently possible to have a worker process all jobs on a specific queue ?

say i have job "A123" and "B232323" on queue "Q1" can i use one processor for both jobs or should the names be explicitly used ?

dberardo-com avatar Jul 19 '23 14:07 dberardo-com