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

Request - Max Retry #78

Open
cansozeri opened this issue Oct 15, 2019 · 1 comment
Open

Request - Max Retry #78

cansozeri opened this issue Oct 15, 2019 · 1 comment

Comments

@cansozeri
Copy link

cansozeri commented Oct 15, 2019

Hi,

Is there anyway to add max retry functionality to this consumer like Laravel --tries=3 ?

I think every reject action, consumer can add a property if not exist to the message like "attempts_count" = 1 and if exists, increment like "attempts_count" = 2. This functionality will be great ...

But as I see the project is very dependent on streadway/amqp library, so I think it is not possible to add this on Delivery package in this project right now ?

@cansozeri cansozeri changed the title Max Retry Request - Max Retry Oct 16, 2019
@cansozeri
Copy link
Author

I think when a message rejected or an error occured - we could send an ack to the RabbitMq server, and push the message payload to the queue with adding a property like "attempts_count" +1.

We can control this property while consuming and throw an error if the max try option has been exceeded which is placed in the configuration file or passed as an argument?

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

1 participant