Skip to content

Commit 7a44ba0

Browse files
Addressing Andrea's feedback
1 parent fbf9dbd commit 7a44ba0

File tree

1 file changed

+3
-3
lines changed
  • aws_lambda_powertools/utilities/batch

1 file changed

+3
-3
lines changed

Diff for: aws_lambda_powertools/utilities/batch/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def __init__(
236236
Whether this is a SQS, DynamoDB Streams, or Kinesis Data Stream event
237237
model: Optional["BatchTypeModels"]
238238
Parser's data model using either SqsRecordModel, DynamoDBStreamRecordModel, KinesisDataStreamRecord
239-
raise_on_entire_batch_fail: bool
239+
raise_on_entire_batch_failure: bool
240240
Raise an exception when the entire batch has failed processing.
241241
When set to False, partial failures are reported in the response
242242
@@ -247,7 +247,7 @@ def __init__(
247247
"""
248248
self.event_type = event_type
249249
self.model = model
250-
self.raise_on_entire_batch_fail = raise_on_entire_batch_failure
250+
self.raise_on_entire_batch_failure = raise_on_entire_batch_failure
251251
self.batch_response: PartialItemFailureResponse = copy.deepcopy(self.DEFAULT_RESPONSE)
252252
self._COLLECTOR_MAPPING = {
253253
EventType.SQS: self._collect_sqs_failures,
@@ -283,7 +283,7 @@ def _clean(self):
283283
if not self._has_messages_to_report():
284284
return
285285

286-
if self._entire_batch_failed() and self.raise_on_entire_batch_fail:
286+
if self._entire_batch_failed() and self.raise_on_entire_batch_failure:
287287
raise BatchProcessingError(
288288
msg=f"All records failed processing. {len(self.exceptions)} individual errors logged "
289289
f"separately below.",

0 commit comments

Comments
 (0)