taskforcesh / issues

Taskforce.sh issues
6 stars 0 forks source link

question: bullmq pro managing priorities within a queue group #152

Open enricrp-rea opened 7 months ago

enricrp-rea commented 7 months ago

Good afternoon, I have some question regarding what does setting a priority to a grup under the group.priority parameter when inserting a job into a queue. In my project , I have different jobs J_1...J_n and for each one i have a queue and a worker. Also each job is grouped by user. There are some times when we want to add a lot of jobs into the queues (new functionalities, migration, bug, etc) and if we do, all new inserted jobs by the user will be stuck some time since the queues are blocked until all those jobs have finished. So I would like to set those jobs inserted from a script with a lower priority than the ones the user inserts. Will this group.priority fix my issue or does it prioritize jobs through groups differently than I think? Thanks