brefphp / laravel-bridge

Package to use Laravel on AWS Lambda with Bref
https://bref.sh/docs/frameworks/laravel.html
MIT License
314 stars 63 forks source link

Retry sqs fifo job #154

Open afdolriski opened 2 weeks ago

afdolriski commented 2 weeks ago

This PR makes it possible to retry a failed SQS FIFO job.

The current job handler is able to receive SQS messages successfully. However, when using FIFO and the code encounters errors, the entire process fails due to a release mechanism that does not provide the required attributes for FIFO messages.

"#27 {main}"
"[previous exception] [object] (GuzzleHttp\\Exception\\ClientException(code: 400): Client error: `POST https://sqs.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:"
"{\""__type\"":\""com.amazon.coral.service#MissingRequiredParameterException\"",\""message\"":\""The request must contain the parameter (truncated...)"
"at /var/task/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113)