You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're attempting to use aws_lambda_powertools.utilities.batch to handle retries etc. for an SQS queue. We're observing differences between a cold lambda and a warm lambda (i.e. previously processed an SQS message) for a batch containing a single failing message:
cold lambda: we get the BatchProcessingError: All records failed processing. 1 individual errors loggedseparately below. exception (i.e. the whole invocation fails)
warm lambda: we get a successful invocation reporting {"batchItemFailures": ...}
This difference in behaviour makes us a bit suspicious that there's a deeper bug hiding?
Expected Behavior
The cold and warm lambdas should behave the same.
Current Behavior
Cold lambdas have the invocation fail, warm lambdas have it succeed.
Possible Solution
🤷
Steps to Reproduce (for bugs)
This is the distilled version of our code, without the business logic.
We're attempting to use
aws_lambda_powertools.utilities.batch
to handle retries etc. for an SQS queue. We're observing differences between a cold lambda and a warm lambda (i.e. previously processed an SQS message) for a batch containing a single failing message:BatchProcessingError: All records failed processing. 1 individual errors loggedseparately below.
exception (i.e. the whole invocation fails){"batchItemFailures": ...}
This difference in behaviour makes us a bit suspicious that there's a deeper bug hiding?
Expected Behavior
The cold and warm lambdas should behave the same.
Current Behavior
Cold lambdas have the invocation fail, warm lambdas have it succeed.
Possible Solution
🤷
Steps to Reproduce (for bugs)
This is the distilled version of our code, without the business logic.
We observe the difference when the lambda is invoked with a batch containing a single record. I haven't checked for batches with multiple records.
Environment
Cold start:
Warm start:
The text was updated successfully, but these errors were encountered: