Return messages once they are gathered
If one or more messages are available, stop waiting and return them.
This commit is contained in:
parent
b55600ce42
commit
00e40c487e
@ -281,7 +281,7 @@ class SQSBackend(BaseBackend):
|
||||
if len(result) >= count:
|
||||
break
|
||||
|
||||
if time.time() > polling_end:
|
||||
if result or time.time() > polling_end:
|
||||
break
|
||||
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user