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

Cannot obliterate non-paused queue #856

Closed
aislanmaia opened this issue Nov 3, 2021 · 3 comments
Closed

Cannot obliterate non-paused queue #856

aislanmaia opened this issue Nov 3, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@aislanmaia
Copy link

Sometimes when trying to obliterate queue, we get the error:
Error: Cannot obliterate non-paused queue
I've noticed this often when trying to obliterate again the same queue after re-creating in the Redis.

Sometimes we're getting the error the first time using it.

One more thing is the key with stalled-check getting created into Redis and we don't have idea what this is coming from.

Screenshot_20211103_185611

@manast
Copy link
Contributor

manast commented Nov 12, 2021

@aislanmaia In order to guarantee that no running jobs are kept hanging after an obliteration, by default the queue is paused but will fail if there are active jobs on it. However (although not recommended) you can force away from this behaviour: https://github.com/OptimalBits/bull/blob/develop/REFERENCE.md#queueobliterate
But I thinking that the error message itself is wrong here, it should probably say "Cannot obliterate queue with active jobs in it"

@roggervalf
Copy link
Collaborator

@roggervalf
Copy link
Collaborator

we have a test case that covers the error message https://github.com/taskforcesh/bullmq/blob/master/tests/test_obliterate.ts#L148-L150 mentioned above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants