smrchy / rsmq

Redis Simple Message Queue
MIT License
1.76k stars 125 forks source link

Sending message back to visibility immediately #53

Closed lucaswxp closed 7 years ago

lucaswxp commented 7 years ago

Hey guys.

Is it possible to, instead of waiting the visibility timeout, send the message back to the queue immediately?

Would "changeMessageVisibility" help me in this? After a message is received, can I call "changeMessageVisibility" with vt 0 to push it back?

smrchy commented 7 years ago

Yes, changeMessageVisibilitywill do this for you. I will not be pushed up top but reset to 0. Other messages might still be in front if there is a lot of traffic in your queue.

lucaswxp commented 7 years ago

Thanks!