Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean all job is not working #807

Open
kumarmanishc opened this issue Sep 2, 2024 · 6 comments
Open

Clean all job is not working #807

kumarmanishc opened this issue Sep 2, 2024 · 6 comments

Comments

@kumarmanishc
Copy link

Thank you for this awesome package..
As of #39 we have a feature to remove all failed jobs.

That's not working
It's requesting to the following endpoints but not working at all with empty response

How to produce ?

It's showing the clean all button.
image
Once user clicks on that it's making request to the following URL
PUT: Request with empty response] http://localhost:3000/bullmq/api/queues/**queue_name**/clean/failed

Note: However Individual remove request is working but it's difficult to remove jobs individually

@felixmosh
Copy link
Owner

It do work for me... Weird, there is a limit of the underline lib(bull / bullmq) of 1000 at a time...
Does your failed queue counter decrease by 1000?

@felixmosh
Copy link
Owner

felixmosh commented Sep 3, 2024

hi @smoothdvd,
can you make a small repo that recreates your issue? I've tried the empty function locally, it works as expected.
Can you check the queue name, maybe there is some issue with the path (which includes the queue name).
Make sure that you are using the correct queue adapter (for bullmq, use BullmqAdapter)
I'm more than happy to try to debug it with you, I'm available on Discord, felixmosh

@smoothdvd
Copy link

@felixmosh Sorry, it's my fault. Using BullAdapter on bullMQ queue.

@kumarmanishc
Copy link
Author

@felixmosh I tried even with less than 100 jobs something migh be wrong with queue system.

Have created queue like this
export const queue1 = new Queue(QueueName.Queue1, { connection: redisConnection });
export const Queue2 = new Queue(QueueName.Queue2, { connection: redisConnection });

@felixmosh
Copy link
Owner

Just added this scenario :]

@felixmosh Sorry, it's my fault. Using BullAdapter on bullMQ queue.

@felixmosh
Copy link
Owner

@felixmosh I tried even with less than 100 jobs something migh be wrong with queue system.

Have created queue like this export const queue1 = new Queue(QueueName.Queue1, { connection: redisConnection }); export const Queue2 = new Queue(QueueName.Queue2, { connection: redisConnection });

can you make a small repo that recreated that issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants