Release a message back to SQS

后端 未结 1 1502
灰色年华
灰色年华 2021-01-17 08:12

I have a some EC2 servers pulling work off of a SQS queue. Occasionally, they encounter a situation where the can\'t finish the job. I have the process email me of the con

相关标签:
1条回答
  • 2021-01-17 09:02

    If you have read a message and decide, for whatever reason, that you do not want to process it and would rather make it immediately available to other readers of the queue, you can simply set that message's visibility timeout to zero using the change_visibility method of the Message object in boto. See The SQS Developer's Guide for details.

    0 讨论(0)
提交回复
热议问题