More explicit SQS message checking. Closes #519.

This commit is contained in:
Steve Pulec 2016-02-14 17:10:17 -05:00
parent b9df567445
commit 63296049f1

View File

@ -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
)