Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQS message sent but not visible #34

Open
cailinw opened this issue Nov 17, 2021 · 1 comment
Open

SQS message sent but not visible #34

cailinw opened this issue Nov 17, 2021 · 1 comment

Comments

@cailinw
Copy link

cailinw commented Nov 17, 2021

Hello, I am using AWSSQS.jl (v0.6) to send a message to a queue, and I am noticing that sometimes, the message is not visible and cannot be received by pollers. I would greatly appreciate any advice on this

I created an SQS queue using the boto3 library in Python, sent a message to it using AWSSQS.jl, and have been polling it using boto3 in Python from a different account for ~2 hours and have not yet received the message. I would greatly appreciate any advice on how to debug this issue. Please see below for more details. Thank you.

I created an SQS queue with the following parameters:
"MessageRetentionPeriod": "60"
"FifoQueue": "true"
"ReceiveMessageWaitTimeSeconds": "20"

I then sent a message to this queue from an AWS ParallelCluster, using the AWSSQS.jl library. This is the first message that was sent to this queue, and I provided a MessageGroupId and a MessageDeduplicationId. I have been polling on this queue for at least 2 hours from a different account, using the following settings, but no message has been received:
MaxNumberOfMessages=1
VisibilityTimeout=0
WaitTimeSeconds=2

Looking at the SQS logs/metrics for this queue, I can see that 1 message has been sent and that there are multiple empty receives. However, the "Approximate Number Of Messages Visible" is always 0, no messages have been deleted, no messages have been received, and no messages are not visible. I'm really confused how this can be possible, as I thought FIFO queues have at least once delivery. What's also strange is that if I retry all of this, it sometimes work and it sometimes doesn't. I'm really confused about this, and would appreciate any help. Thank you.

@mattBrzezinski
Copy link
Member

Can you provide the code itself that you're using to make these requests? Is there a reason why you're mixing Julia and Python here? AWS.jl will give you all the functionality that you need to do this in just Julia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants