Messages passed visibility timeout still "in flight"

0

I am occasionally seeing a problem that I cannot explain with Fifo queues.
In the console and on the aws-cli I see messages in-flight that are way passed their visibility timeouts.
They stay there for hours.
It seems to be the same issue this person posted:
https://forums.aws.amazon.com/thread.jspa?messageID=520092

Looking at my process output, all messages seem to have been processed without issue so I don't know what the remaining in flight means.
I am using boto3 with python2 to interact with the queues.

Thank you

질문됨 5년 전1517회 조회
1개 답변
0
수락된 답변

Hi there!

What you're describing sounds more like there are a few messages that are repeatedly failing to process for some reason. If you don't have a redrive policy (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) defined for a FIFO queue, any messages that can't be processed will cycle back and forth between visible and invisible indefinitely.

If you're looking at metrics like ApproximateNumberOfMessagesNotVisible, it could look like it's staying elevated consistently, giving the impression that messages are staying invisible for a long time, when in truth there are several poison pills fluctuating back and forth.

What does ApproximateAgeOfOldestMessage look like for your queue?

Robin

AWS
답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠