Upgrading to Bref 4.0
Updating dependencies
Update all Bref packages in your composer.json file from ^3 to ^4, for example:
composer.json
"require": {
"bref/bref": "^4",
"bref/laravel-bridge": "^4", // if you use Laravel
"bref/symfony-bridge": "^4" // if you use Symfony
}Only update the versions for the packages you actually have in your project.
Then run:
composer update --with-all-dependenciesFailed console commands are no longer retried
When a command invoked asynchronously failed (e.g. a cron), Lambda retried it twice by default. Bref now sets maximumRetryAttempts: 0 on console functions: Lambda no longer retries failed commands. Failed commands are still counted in the Errors metric of the function.
To keep the retries, set maximumRetryAttempts on the function:
serverless.yml
functions:
artisan:
handler: artisan
runtime: php-84-console
maximumRetryAttempts: 2If you deploy without serverless.yml (e.g. with AWS CDK or Terraform), set the maximum retry attempts of the functionโs asynchronous invocations to 0 to get the same behavior.
Last updated on