You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what I am doing wrong, it was working on Bull:v3.
// Lets take as a given that I have added 800 jobs without defining a Worker before so all jobs should be "waiting"constjobs=awaitqueue.getJobCounts('waiting');console.log(`There are ${jobs.waiting} jobs to clean`);constwait=awaitqueue.clean(0,0,'wait');console.log(`cleaned ${wait.length} wait jobs`);
This outputs:
There are 800 jobs to clean
cleaned 0 wait jobs
I thought that maybe the second parameter limit shouldn't be 0, but I tried with a high number instead and still no jobs are being removed. Using waiting instead of wait leads to the same result.
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Not sure what I am doing wrong, it was working on
Bull:v3
.This outputs:
I thought that maybe the second parameter
limit
shouldn't be 0, but I tried with a high number instead and still no jobs are being removed. Usingwaiting
instead ofwait
leads to the same result.What am I doing wrong?
The text was updated successfully, but these errors were encountered: