moto/moto/sqs
Brian Pandola 7c44e48670
Fix: SQS fails to get newly-visible messages when long polling (#5733)
The [original commit to remove the `sleep` call][1], only considered newly-arriving
messages; but didn't take into account that existing messages could become visible
in a much shorter time duration than the wait timeout.  This commit addresses this
by checking for newly-visible messages at the visibility timeout granularity (seconds),
which is still a major improvement over the original 10 millisecond polling.

[1]: <d560ff002d> "Remove Sleep Call"
2022-12-04 18:00:56 -08:00
..
__init__.py SNS Docs - do not specify default region (#4909) 2022-03-03 22:25:06 -01:00
exceptions.py Techdebt: Replace string-format with f-strings (for s* dirs) (#5692) 2022-11-21 18:21:34 -01:00
models.py Fix: SQS fails to get newly-visible messages when long polling (#5733) 2022-12-04 18:00:56 -08:00
responses.py SQS: Implement DelaySeconds validation (#5703) 2022-11-27 20:47:18 -01:00
urls.py Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
utils.py Techdebt: Replace string-format with f-strings (for s* dirs) (#5692) 2022-11-21 18:21:34 -01:00