gpt4 book ai didi

python - 如何查看队列中的消息

转载 作者:太空狗 更新时间:2023-10-29 21:35:17 24 4
gpt4 key购买 nike

我不希望消息被计为“已读”,但我想知道队列中有什么。文档:

http://boto.s3.amazonaws.com/ref/sqs.html#module-boto.sqs

关于什么吸收信息什么不吸收信息不是很直截了当。转储消息似乎很接近,但我宁愿在内存中而不是文件中执行此操作。

常见问题解答:

http://aws.amazon.com/articles/1343#12

有一些粗略的解决方案:

How do I peek at a message?

With version 2008-01-01, the PeekMessage action has been removed from Amazon SQS. This functionality was used mainly to debug small systems — specifically to confirm a message was successfully sent to the queue or deleted from the queue. To do this with version 2008-01-01, you can log the message ID and the receipt handle for your messages and correlate them to confirm when a message has been received and deleted.

有人遇到过这个问题吗?这似乎是非常基本的队列功能,如果没有一种干净的方法来做到这一点,我会感到震惊。

最佳答案

右键单击在新的 SQS 控制台中不再有效。

要在 SQS 控制台中查看队列消息,您现在需要单击队列 > 发送和接收消息 > 轮询消息

关于python - 如何查看队列中的消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10100522/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com