Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/utilities/batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Processing batches from SQS works in four stages:
@tracer.capture_lambda_handler
def lambda_handler(event, context: LambdaContext):
batch = event["Records"]
with processor(records=batch, processor=processor):
with processor(records=batch, handler=record_handler):
processed_messages = processor.process() # kick off processing, return list[tuple]

return processor.response()
Expand Down Expand Up @@ -413,7 +413,7 @@ Processing batches from Kinesis works in four stages:
@tracer.capture_lambda_handler
def lambda_handler(event, context: LambdaContext):
batch = event["Records"]
with processor(records=batch, processor=processor):
with processor(records=batch, handler=record_handler):
processed_messages = processor.process() # kick off processing, return list[tuple]

return processor.response()
Expand Down Expand Up @@ -549,7 +549,7 @@ Processing batches from Kinesis works in four stages:
@tracer.capture_lambda_handler
def lambda_handler(event, context: LambdaContext):
batch = event["Records"]
with processor(records=batch, processor=processor):
with processor(records=batch, handler=record_handler):
processed_messages = processor.process() # kick off processing, return list[tuple]

return processor.response()
Expand Down Expand Up @@ -821,7 +821,7 @@ def record_handler(record: SQSRecord):
@tracer.capture_lambda_handler
def lambda_handler(event, context: LambdaContext):
batch = event["Records"]
with processor(records=batch, processor=processor):
with processor(records=batch, handler=record_handler):
processed_messages: List[Union[SuccessResponse, FailureResponse]] = processor.process()

for messages in processed_messages:
Expand Down