From a6dd86c5f7f0b0d2630cdf72db20192c3defd1f4 Mon Sep 17 00:00:00 2001 From: Kahlil Hodgson Date: Fri, 16 Feb 2024 17:00:43 +1100 Subject: [PATCH 1/2] fix: slice must be an integer --- sqs_workers/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqs_workers/queue.py b/sqs_workers/queue.py index 6e7b488..95a879e 100644 --- a/sqs_workers/queue.py +++ b/sqs_workers/queue.py @@ -477,7 +477,7 @@ def _flush_batch_if_needed(self) -> None: if self._est_message_size() > MAX_SQS_MESSAGE_SIZE: # If we have batch of large messages, try to send half of it at a time - send_batch_size = SEND_BATCH_SIZE / 2 + send_batch_size = SEND_BATCH_SIZE // 2 msgs = self._batched_messages[:send_batch_size] self._batched_messages = self._batched_messages[send_batch_size:] From 22491a07ccf3ec1b990ed0d6174dc34a26cd32c0 Mon Sep 17 00:00:00 2001 From: Kahlil Hodgson Date: Fri, 16 Feb 2024 17:01:45 +1100 Subject: [PATCH 2/2] chore: bump version for release --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 691639f..4136070 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sqs-workers" -version = "0.5.13" +version = "0.5.14" description = "An opinionated queue processor for Amazon SQS" authors = ["Doist Developers "] license = "MIT"