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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue