Amazon SQS 如何控制重试次数 [英] Amazon SQS how to control the number of retries

查看:71
本文介绍了Amazon SQS 如何控制重试次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在配置一个

或者进入SQS Queue admin进入Queue Actions>配置队列:

在一处更改值会将更改传播到另一处.

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.

解决方案

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.

这篇关于Amazon SQS 如何控制重试次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆