async-lambda-unstable 0.4.6__tar.gz → 0.4.8__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.4.6 → async-lambda-unstable-0.4.8}/PKG-INFO +1 -1
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/__init__.py +1 -1
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/controller.py +4 -3
- async-lambda-unstable-0.4.8/async_lambda/payload_encoder.py +11 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda_unstable.egg-info/PKG-INFO +1 -1
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda_unstable.egg-info/SOURCES.txt +1 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/README.md +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/build_config.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/cli.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/client.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/config.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/defer.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/env.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/middleware.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/__init__.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/case_insensitive_dict.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/__init__.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/api_event.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/base_event.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/dynamodb_event.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/managed_sqs_event.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/scheduled_event.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/unmanaged_sqs_event.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/mock/mock_context.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/mock/mock_event.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/task.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/py.typed +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/util.py +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda_unstable.egg-info/dependency_links.txt +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda_unstable.egg-info/entry_points.txt +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda_unstable.egg-info/requires.txt +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda_unstable.egg-info/top_level.txt +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/pyproject.toml +0 -0
- {async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/setup.cfg +0 -0
|
@@ -14,4 +14,4 @@ from .models.events.managed_sqs_event import ManagedSQSEvent as ManagedSQSEvent
|
|
|
14
14
|
from .models.events.scheduled_event import ScheduledEvent as ScheduledEvent
|
|
15
15
|
from .models.events.unmanaged_sqs_event import UnmanagedSQSEvent as UnmanagedSQSEvent
|
|
16
16
|
|
|
17
|
-
__version__ = "0.4.
|
|
17
|
+
__version__ = "0.4.8"
|
|
@@ -21,6 +21,7 @@ from .models.events.unmanaged_sqs_event import UnmanagedSQSEvent
|
|
|
21
21
|
from .models.mock.mock_context import MockLambdaContext
|
|
22
22
|
from .models.mock.mock_event import MockSQSLambdaEvent
|
|
23
23
|
from .models.task import AsyncLambdaTask, TaskTriggerType
|
|
24
|
+
from .payload_encoder import PayloadEncoder
|
|
24
25
|
from .util import make_cf_tags
|
|
25
26
|
|
|
26
27
|
logger = logging.getLogger(__name__)
|
|
@@ -306,7 +307,7 @@ class AsyncLambdaController:
|
|
|
306
307
|
self,
|
|
307
308
|
destination_task_id: str,
|
|
308
309
|
sqs_payload: dict,
|
|
309
|
-
delay:
|
|
310
|
+
delay: int = 0,
|
|
310
311
|
force_sync: bool = False,
|
|
311
312
|
lane: Optional[int] = None,
|
|
312
313
|
):
|
|
@@ -392,7 +393,7 @@ class AsyncLambdaController:
|
|
|
392
393
|
"destination_task_id": destination_task_id,
|
|
393
394
|
"invocation_id": invocation_id,
|
|
394
395
|
}
|
|
395
|
-
serialized_payload = json.dumps(payload)
|
|
396
|
+
serialized_payload = json.dumps(payload, cls=PayloadEncoder)
|
|
396
397
|
payload_size = len(serialized_payload.encode())
|
|
397
398
|
if payload_size < 250_000: # we need to double encode to be sure
|
|
398
399
|
payload_size = len(json.dumps(serialized_payload).encode())
|
|
@@ -421,7 +422,7 @@ class AsyncLambdaController:
|
|
|
421
422
|
self,
|
|
422
423
|
task_id: str,
|
|
423
424
|
payload: Any,
|
|
424
|
-
delay:
|
|
425
|
+
delay: int = 0,
|
|
425
426
|
force_sync: bool = False,
|
|
426
427
|
lane: Optional[int] = None,
|
|
427
428
|
):
|
|
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
|
{async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/__init__.py
RENAMED
|
File without changes
|
{async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/api_event.py
RENAMED
|
File without changes
|
{async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/events/base_event.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/async_lambda/models/mock/mock_context.py
RENAMED
|
File without changes
|
{async-lambda-unstable-0.4.6 → async-lambda-unstable-0.4.8}/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
|