Has anyone manage to get `ReportBatchItemFailures`...
# help
r
Has anyone manage to get
ReportBatchItemFailures
to work with SQS and SST? I'm wondering if we're doing something wrong or if the live lambda development isn't handling this property correctly. Going to test now with a deployed lambda to check
f
Hey @Robert Chandler, what’s the specific issue? errors not retried?
r
Correct
This is the first time we're configuring it so the problem may well be on our end especially as is still didn't seem to work after deploy
I can see
"ReportBatchItemFailures"
in the CloudFormation template so I'm pretty sure that's there and the response we're giving from the handler seems to have the correct form but no records are being retried
f
r
Ahh, this might be the issue 😅
f
the thinking there was when working on ur Lambda code, ppl probably want to make a code change before retrying
so auto-retry was disabled
any reason u wanted to auto-retry?
r
This makes a lot of sense
Only for potentially transient issues such as an external API being temporarily unavailable
The other thing we wanted to ensure was that if retries were enabled by default that we wouldn't be retrying all messages in the batch, just the failed ones
Do you know what the AWS default is?
f
Got it. This flag only controls whether to retry or not. The exact retry behavior (partial/all) is not touched.
Let me talk to the team about this. We should provide an option to allow retry in
sst start
.
r
As ever thanks for your help! ☺️
f
Btw, do u need the transient errors be retried in this case?
r
Not so much locally but it's useful to be able to check that they would indeed be retried in production
f
Ah good point! Makes sense.