async-lambda-unstable 0.5.1__tar.gz → 0.5.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/PKG-INFO +1 -1
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/__init__.py +1 -1
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/controller.py +18 -8
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda_unstable.egg-info/PKG-INFO +1 -1
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/README.md +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/build_config.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/cli.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/client.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/config.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/defer.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/env.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/middleware.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/__init__.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/api_response.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/case_insensitive_dict.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/__init__.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/api_event.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/base_event.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/dynamodb_event.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/managed_sqs_batch_event.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/managed_sqs_event.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/scheduled_event.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/unmanaged_sqs_event.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/mock/mock_context.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/mock/mock_event.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/task.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/payload_encoder.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/py.typed +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/util.py +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda_unstable.egg-info/SOURCES.txt +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda_unstable.egg-info/dependency_links.txt +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda_unstable.egg-info/entry_points.txt +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda_unstable.egg-info/requires.txt +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda_unstable.egg-info/top_level.txt +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/pyproject.toml +0 -0
- {async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/setup.cfg +0 -0
|
@@ -19,4 +19,4 @@ from .models.events.managed_sqs_event import ManagedSQSEvent as ManagedSQSEvent
|
|
|
19
19
|
from .models.events.scheduled_event import ScheduledEvent as ScheduledEvent
|
|
20
20
|
from .models.events.unmanaged_sqs_event import UnmanagedSQSEvent as UnmanagedSQSEvent
|
|
21
21
|
|
|
22
|
-
__version__ = "0.5.
|
|
22
|
+
__version__ = "0.5.2"
|
|
@@ -525,7 +525,7 @@ class AsyncLambdaController:
|
|
|
525
525
|
self.set_current_lane(current_lane)
|
|
526
526
|
self.set_current_task_id(current_task_id)
|
|
527
527
|
else:
|
|
528
|
-
entries = []
|
|
528
|
+
entries: List[dict] = []
|
|
529
529
|
for i, sqs_payload in enumerate(sqs_payloads):
|
|
530
530
|
if isinstance(delay, Sequence):
|
|
531
531
|
_delay = delay[i]
|
|
@@ -542,13 +542,23 @@ class AsyncLambdaController:
|
|
|
542
542
|
url = f"https://sqs.{env.get_aws_region()}.amazonaws.com/{env.get_aws_account_id()}/{destination_task_id}"
|
|
543
543
|
else:
|
|
544
544
|
url = destination_task.get_managed_queue_url(lane=lane)
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
545
|
+
failed_messages = []
|
|
546
|
+
for _ in range(5):
|
|
547
|
+
response = get_sqs_client().send_message_batch(
|
|
548
|
+
QueueUrl=url,
|
|
549
|
+
Entries=entries,
|
|
550
|
+
)
|
|
551
|
+
failed_messages: List[dict] = response.get("Failed", [])
|
|
552
|
+
if len(failed_messages) == 0:
|
|
553
|
+
return
|
|
554
|
+
logger.warning(failed_messages)
|
|
555
|
+
logger.warning(f"{len(failed_messages)} messages failed to send.")
|
|
556
|
+
failed_message_ids = {message["Id"] for message in failed_messages}
|
|
557
|
+
entries = [
|
|
558
|
+
entry for entry in entries if entry["Id"] in failed_message_ids
|
|
559
|
+
]
|
|
560
|
+
logger.error(failed_messages)
|
|
561
|
+
raise Exception(f"Failed to send {len(failed_messages)} messages.")
|
|
552
562
|
|
|
553
563
|
def new_payload(
|
|
554
564
|
self,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/api_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/__init__.py
RENAMED
|
File without changes
|
{async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/api_event.py
RENAMED
|
File without changes
|
{async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/events/base_event.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/mock/mock_context.py
RENAMED
|
File without changes
|
{async-lambda-unstable-0.5.1 → async-lambda-unstable-0.5.2}/async_lambda/models/mock/mock_event.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|