Automattic / kue

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

duplicate queue events when there are multiple queue events listener #1152

Open ojhaujjwal opened 6 years ago

ojhaujjwal commented 6 years ago

I disabled the job events and did the job cleanup in the queue events. When there are same queue events listeners running in multiple processes, every process will try to do the job cleanup. For one process, it runs successfully. For other it fails. job cleanup is just an example. If I do other cleanup tasks in queue events listener. those are duplicated. Is there any solution/workaround to this problem?