Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: batch processing exceptions #276

Merged
merged 5 commits into from Feb 2, 2021
Merged

Conversation

to-mc
Copy link
Contributor

@to-mc to-mc commented Jan 26, 2021

Issue #, if available: #275

Description of changes:

Update batch exception handling to include more detail of the actual exceptions raised in users processing code.

Why not just log the exception one-by-one as we catch them?
By default, the aws_lambda_powertools package logger is suppressed. Logging from package modules would require users to take additional steps to see those logs.

Checklist

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

@to-mc to-mc changed the title Fix/batch processing exceptions fix: batch processing exceptions Jan 26, 2021
@to-mc to-mc added area/utilities bug Something isn't working labels Jan 26, 2021
@heitorlessa
Copy link
Contributor

heitorlessa commented Jan 26, 2021 via email

@heitorlessa
Copy link
Contributor

I'm late on reviewing this... I'll try tomorrow evening - Been a roller-coaster these past days

Copy link
Contributor

@heitorlessa heitorlessa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - minor changes so we remember why we're making some of these changes, and not a generic exception processing class

aws_lambda_powertools/utilities/batch/base.py Show resolved Hide resolved
aws_lambda_powertools/utilities/batch/sqs.py Outdated Show resolved Hide resolved
@to-mc
Copy link
Contributor Author

to-mc commented Feb 2, 2021

Implemented requested changes from review

@to-mc to-mc merged commit be6aa08 into develop Feb 2, 2021
@to-mc to-mc deleted the fix/batch_processing_exceptions branch February 2, 2021 17:02
heitorlessa added a commit to nadobando/aws-lambda-powertools-python that referenced this pull request Feb 4, 2021
* develop:
  chore: bump to 1.10.2 (aws-powertools#282)
  fix: batch processing exceptions (aws-powertools#276)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants