Skip to content

Commit 880c696

Browse files
committed
docs(batch): remove legacy reference to sqs processor
1 parent a72ab86 commit 880c696

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Diff for: docs/utilities/batch.md

-25
Original file line numberDiff line numberDiff line change
@@ -1207,28 +1207,3 @@ class MyProcessor(BatchProcessor):
12071207
capture_exception() # send exception to Sentry
12081208
return super().failure_handler(record, exception)
12091209
```
1210-
1211-
### Suppressing exceptions
1212-
1213-
If you want to disable the default behavior where `BatchProcessingError` is raised if there are any errors, you can pass the `suppress_exception` boolean argument.
1214-
1215-
=== "Decorator"
1216-
1217-
```python hl_lines="3"
1218-
from aws_lambda_powertools.utilities.batch import batch_processor
1219-
1220-
@batch_processor(record_handler=record_handler, suppress_exception=True)
1221-
def lambda_handler(event, context):
1222-
return {"statusCode": 200}
1223-
```
1224-
1225-
=== "Context manager"
1226-
1227-
```python hl_lines="3"
1228-
from aws_lambda_powertools.utilities.batch import BatchProcessor, EventType
1229-
1230-
processor = BatchProcessor(event_type=EventType.SQS, suppress_exception=True)
1231-
1232-
with processor(records, record_handler):
1233-
result = processor.process()
1234-
```

0 commit comments

Comments
 (0)