Jobs with attempts > 0 have different priority?
Created by: DavideViolante
Description
I noticed the following in our app:
- there are X+Y jobs in waiting queue: X jobs have priority 50 and attemps 0, Y jobs have priority 25 and attemps > 0
- the jobs with priority 50 go into the active queue BEFORE the jobs with priority 25
I was expecting that jobs with priority 25 go before the other ones with priority 50, even if the ones with priority 25 have attempted once or more. Which is the correct behaviour?
Bull version
v3.14.0