More explicit SQS message checking. Closes #519.
This commit is contained in:
parent
b9df567445
commit
63296049f1
@ -285,6 +285,8 @@ class SQSBackend(BaseBackend):
|
||||
# queue.messages only contains visible messages
|
||||
while True:
|
||||
for message in queue.messages:
|
||||
if not message.visible:
|
||||
continue
|
||||
message.mark_received(
|
||||
visibility_timeout=queue.visibility_timeout
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user