Skip to content

feat(batch): support FIFO entire batch failure override#8243

Open
rohan-patnaik wants to merge 1 commit into
aws-powertools:developfrom
rohan-patnaik:fix-sqs-fifo-entire-batch-failure
Open

feat(batch): support FIFO entire batch failure override#8243
rohan-patnaik wants to merge 1 commit into
aws-powertools:developfrom
rohan-patnaik:fix-sqs-fifo-entire-batch-failure

Conversation

@rohan-patnaik
Copy link
Copy Markdown

@rohan-patnaik rohan-patnaik commented May 22, 2026

Fixes #7596

Summary

This lets SqsFifoPartialProcessor use the existing raise_on_entire_batch_failure option that BatchProcessor already supports.

Why

Before this change, FIFO batch processing always raised BatchProcessingError when every record ended up failed, even when callers wanted the Lambda partial failure response instead. That made the FIFO processor behave differently from the standard batch processor for the same option.

Test plan

  • .venv/bin/python -m pytest tests/functional/batch/required_dependencies/test_utilities_batch.py -k 'sqs_fifo_batch_processor'
  • .venv/bin/python -m ruff format --check aws_lambda_powertools/utilities/batch/sqs_fifo_partial_processor.py tests/functional/batch/required_dependencies/test_utilities_batch.py
  • .venv/bin/python -m ruff check aws_lambda_powertools/utilities/batch/sqs_fifo_partial_processor.py tests/functional/batch/required_dependencies/test_utilities_batch.py

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@boring-cyborg
Copy link
Copy Markdown

boring-cyborg Bot commented May 22, 2026

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link

@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 22, 2026
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Support raise_on_entire_batch_failure in SqsFifoPartialProcessor

1 participant