Replies: 3 comments 11 replies
-
@michaelklishin @lukebakken Is this the expected beahivour? I don't see why i cannot open a new channel after it is closed due to an ack timeout |
Beta Was this translation helpful? Give feedback.
-
Hi, I have another doubt regarding this problem. I need to ensure that all messages are processed and that there is no duplicity in my system. So I need to take intou account this case (ack timeout), disconnection from rabbitmq, and stopping my application. In this case, I'm creating a new channel with a new consumer to continue processing messages, and if the message is resended I do not process it, just ack it. I do this because the consumer that generated the timeout is still executing as is processing the prefetched messages. If in this state I stop my application, How do I know that the first consumer finished processing the prefeteched messages? |
Beta Was this translation helpful? Give feedback.
-
@pabermod - I have added your code and an There is much more code than necessary to demonstrate the issue. In addition, there is no code that publishes messages. This means that you are asking me to simplify your code to the bare minimum to demonstrate the issue, as well as figure out how you're publishing messages. What I'm going to do now is edit the code to the bare minimum to re-create a consumer after a channel timeout, and add a publisher. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i'm testing the following scenario:
I have a consumer that can take more time than the configured consumer_timeout.
What I want is when the channel is closed due to this case, create a new channel and a new consumer to the same queue (the first consumer won't receive more messages than the prefetched ones).
If the message I receive in the consumer has been resend, I won't process it, I will only ack it.
But when I try to create another channel I got a timeout
consumer_timeout is set to 1000
Also I set channel_tick_interval to 500 in advanced.config
I attach a receive client demo ReceiveRabbit.zip
Beta Was this translation helpful? Give feedback.
All reactions