Skip to content

Commit

Permalink
fix #141: correct SQS messages processing (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik authored Jan 15, 2024
1 parent 5cc6c65 commit 4d47202
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion propan/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from unittest.mock import Mock

__version__ = "0.1.5.25"
__version__ = "0.1.5.26"


INSTALL_MESSAGE = (
Expand Down
1 change: 1 addition & 0 deletions propan/brokers/sqs/sqs_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ async def _consume(self, queue_url: str, handler: Handler) -> NoReturn:
connected = True

messages = r.get("Messages", [])
has_trash_messages = False
for msg in messages:
try:
await handler.callback(msg, True)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ classifiers = [
dynamic = ["version"]

dependencies = [
"fast-depends>=2.1.1",
"fast-depends>=2.1.1,<2.2.0",
"watchfiles",
"typer",
"uvloop>=0.14.0,!=0.15.0,!=0.15.1; sys_platform != 'win32' and (sys_platform != 'cygwin' and platform_python_implementation != 'PyPy')",
Expand Down Expand Up @@ -250,4 +250,4 @@ omit = [
'*/__main__.py',
'*/__init__.py',
'*/annotations.py',
]
]

0 comments on commit 4d47202

Please sign in to comment.