lykmapipo / kue-scheduler

A job scheduler utility for kue, backed by redis and built for node.js
246 stars 47 forks source link

Setting worker:false doesn't stop process. #80

Closed richburdon closed 7 years ago

richburdon commented 7 years ago

I'm creating a simple scheduler client to test my running kue-scheduler.

let queue = kue.createQueue({worker:false}); queue.now(queue.createJob('test', {}));

The job gets processed fine (by the running worker), but I was expecting the client process to just end after enqueuing the job (given that it is not a worker), but it hangs. What's going on?

lykmapipo commented 7 years ago

@richburdon Its by design since kue-scheduler rely heavily on kue for all its queue work. kue always keep worker waiting for the next job to process unless you exit/kill the process.