Created by: cbjuan
These fixes are related to:
- Fix the removal of jobs in priority queues
- Fix the command to empty queues completely in the case of priority
This PR solves (at least in our experience) the issue #983 (closed)
Co-Authored-By: @pacomf