generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 455
Closed
Labels
Description
Use case
We want to handle Kinesis streaming events and use Pydantic models with event_parser
, AND be able to do partial failures.
If use KinesisDataStreamEnvelope
you just get list of model so you can't do partial failures.
Solution/User Experience
Envelope that would return for example List[Tuple[str, Optional[Model]]]
which would allow similar easy handling of the actual model data but also make it possible to easily implement partial batch failures. Similar would probably be useful for other similar envelopes for services that support partial batch failures.
Alternative solutions
Make Powertools batch processing able to work with batches, not single items, in custom code side. And support for failing instantly when first processing fails instead of processing all regardless of errors.
Acknowledgment
- This feature request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Closed