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

lockKey as plain messageId without lock prefix while consuming a message. #239

Open
ilya-mak opened this issue Sep 15, 2024 · 1 comment

Comments

@ilya-mak
Copy link

Hi,

After sending successfully a message to redis using RqueueMessageEnqueuer.enqueue(queueName, message), I'm consuming a messeage using @RqueueListener(value = "my-queue") annotation and while debugging i can see that while processing a message rqueue is updating the message status(message metaData) and its using a lockKey for the setNX command as plain messageId without the lockKey prefix ("__rq::lock::").

I saw there is a getLockKeyPrefix(String key) method in RqueueConfig class but its not being used through this process.

Is this behavior is normal and intended?

Is there a way to override/configure a lockKey prefix default or custom instead only a messageId, to use through a simple message consuming process I mentioned above?

  • Rqueue Version: 2.13.0-RELEASE
  • Spring Boot Version: 2.7.5

Thank you.

lockKeyInit
setIfAbsent

@sonus21
Copy link
Owner

sonus21 commented Oct 22, 2024

This looks like an issue to me, let me investigate this more.

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

2 participants