-
Notifications
You must be signed in to change notification settings - Fork 198
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
Fifo delay queue is delivering messages immediately instead of delaying them #890
Comments
@jcelmeta14 I can't reproduce the issue.
and this is my test code: queue = self.sqs.get_queue_by_name(QueueName='delayed.fifo')
queue.send_message(MessageBody='some test message to be delayed', MessageGroupId='group123', MessageDeduplicationId='dedup123')
messages = queue.receive_messages()
print(messages)
time.sleep(5)
messages = queue.receive_messages()
print(messages)
time.sleep(5)
messages = queue.receive_messages()
print(messages) and this is the output:
If you still observe the issue with the latest version, please provide an application or test reproducing it. |
Thank your for your reply! I will try to create a repo in the following days, and I will post another comment here. |
The issue happens when the "DelaySeconds" is set to 0 within the message. If you modify your test code like this:
You would observe in
that I prepared this PR to fix this: #1009 |
Hello!
I have a queue configured in the
.conf
file as follows:As you may see, the queue has a delay of 60 seconds. The queue seems to have been created correctly. I checked using the CLI:
The problem is that regardless of the configuration, the messages get delivered immediately. I am using
serverless-framework
and I have configured a function to have the queue as an event source. As soon as a message is sent to the queue, the function get triggered immediately without the delay of 60 seconds.Am I doing something wrong?
Thank you!
The text was updated successfully, but these errors were encountered: