You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this release we are excited to announce a new feature in the Batch processing utility and bug fixes in Tracing and Logging.
New Feature: ThrowOnFullBatchFailure
This release introduces a new batch processing option: ThrowOnFullBatchFailure. This option controls whether a BatchProcessingException should be raised on full batch failure.
⭐ Special thanks to @lachriz-aws for developing this feature.
The ThrowOnFullBatchFailure option can be set via:
A new ThrowOnFullBatchFailure field on the BatchProcessor attribute (applied in non-utility mode)
A new environment variable POWERTOOLS_BATCH_THROW_ON_FULL_BATCH_FAILURE (applied in non-utility mode)
Directly on the AWS.Lambda.Powertools.BatchProcessing.ProcessingOptions in utility mode
Behavior
When processing of an entire batch fails:
If ThrowOnFullBatchFailure is set to false, the Batch Processor will not throw an exception after batch processing has completed. Instead, it will return the IDs of the failed items (all batch items in this case) and exit gracefully.
If a Lambda function is configured with ErrorHandlingPolicy = StopOnFirstBatchItemFailure and the first batch item fails processing, the entire batch is marked as failed (as per the documentation). In this case, if ThrowOnFullBatchFailure is set to false, the behavior described above will apply.
Note: The new ThrowOnFullBatchFailure option is compatible with the existing error handling policies.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
In this release we are excited to announce a new feature in the Batch processing utility and bug fixes in Tracing and Logging.
New Feature: ThrowOnFullBatchFailure
This release introduces a new batch processing option:
ThrowOnFullBatchFailure
. This option controls whether aBatchProcessingException
should be raised on full batch failure.⭐ Special thanks to @lachriz-aws for developing this feature.
Batch processing 1.2.0
The
ThrowOnFullBatchFailure
option can be set via:ThrowOnFullBatchFailure
field on theBatchProcessor
attribute (applied in non-utility mode)POWERTOOLS_BATCH_THROW_ON_FULL_BATCH_FAILURE
(applied in non-utility mode)AWS.Lambda.Powertools.BatchProcessing.ProcessingOptions
in utility modeBehavior
When processing of an entire batch fails:
ThrowOnFullBatchFailure
is set tofalse
, the Batch Processor will not throw an exception after batch processing has completed. Instead, it will return the IDs of the failed items (all batch items in this case) and exit gracefully.ErrorHandlingPolicy = StopOnFirstBatchItemFailure
and the first batch item fails processing, the entire batch is marked as failed (as per the documentation). In this case, ifThrowOnFullBatchFailure
is set tofalse
, the behavior described above will apply.Note: The new
ThrowOnFullBatchFailure
option is compatible with the existing error handling policies.Bug Fixes
Tracing Update
Tracing
decorated method in version 1.5.1Logging Update
Changes
🌟New features and non-breaking changes
📜 Documentation updates
🔧 Bug Fixes
This release was made possible by the following contributors:
@hjgraca and @lachriz-aws
This discussion was created from the release 1.15.
Beta Was this translation helpful? Give feedback.
All reactions