When emptying all the jobs on a queue from the dashboard, we should make sure we remove only those that were there when the button was pressed, in case the cleaning job is executed late.
To do that we should add a condition on the job IDs (lower or equal than an ObjectId() generated from the dashboard rest API)
When emptying all the jobs on a queue from the dashboard, we should make sure we remove only those that were there when the button was pressed, in case the cleaning job is executed late.
To do that we should add a condition on the job IDs (lower or equal than an
ObjectId()generated from the dashboard rest API)