Amazon SQS how to control the number of retries

青春壹個敷衍的年華 提交于 2019-12-10 13:13:13

问题


I am configuring a beanstalk worker environment to deal with periodic tasks

When the requested URL is not responding with status 200 Elastic Beanstalk will put the task again in the queue.

How can I configure the number or retries?

I know the explanation is somewhere hidden behind ErrorVisibilityTimeout, InactivityTimeout, Dead Letter Queues... but these concepts are still not growing green in my inefficient mind.

For example I just want to configure maximum number of retries 0 so there is try but not any retry.


回答1:


Enable Dead Letter Queues, and set the DLQ Maximum Receives value to 1. This means that a message can only be received (and not deleted) one time before it is sent to the Dead Letter Queue.

Update, adding screenshots

This field is found into the beanstalk environment admin into Configuration > Worker Configuration > Advanced Options:

Or into the the SQS Queue admin into Queue Actions > Configure Queue:

Changing the value in one place will propagate the change to the other place.



来源:https://stackoverflow.com/questions/42142954/amazon-sqs-how-to-control-the-number-of-retries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!