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

[Bug]: Redis keyPrefix leads to stalled jobs #3013

Open
1 task done
SloCompTech opened this issue Jan 15, 2025 · 3 comments
Open
1 task done

[Bug]: Redis keyPrefix leads to stalled jobs #3013

SloCompTech opened this issue Jan 15, 2025 · 3 comments

Comments

@SloCompTech
Copy link

Version

5.34.6

Platform

NodeJS

What happened?

If keyPrefix is set on Redis connection, Worker returns following errors:

  • Error: Missing key for job 1. moveToFinished
  • Error: job stalled more than allowable limit

How to reproduce.

Set keyPrefix property on Redis connection settings and create custom queue and add sample job to queue.

Relevant log output

List of Redis keys present in database:
bull:report:2:lock
customprefix:bull:report:stalled-check
bull:report:2
bull:report:1
customprefix:bull:report:failed
customprefix:bull:report:active
customprefix:bull:report:meta
customprefix:bull:report:events
customprefix:bull:report:id

Code of Conduct

  • I agree to follow this project's Code of Conduct
@SloCompTech SloCompTech added the bug Something isn't working label Jan 15, 2025
@roggervalf
Copy link
Collaborator

roggervalf commented Jan 16, 2025

Hi @SloCompTech, pls take a look https://docs.bullmq.io/guide/connections. There is a warning to not use keyPrefix, but instead use the prefix option from queue and worker options.

@manast manast removed the bug Something isn't working label Jan 16, 2025
@manast
Copy link
Contributor

manast commented Jan 16, 2025

Is the warning being casted or do we have a regression?

@SloCompTech
Copy link
Author

Hi @SloCompTech, pls take a look https://docs.bullmq.io/guide/connections. There is a warning to not use keyPrefix, but instead use the prefix option from queue and worker options.

This works. Maybe prefix as correct alternative to `keyPrefix``should be mentioned in warning ?

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