On February 10th, we've released v2.4.1 of laravel/vapor-core.
This release includes an important fix for long running queued jobs. Before this fix, long running jobs were left to be terminated by Lambda after reaching the timeout set by queue-timeout
in your vapor.yml
file. This causes the PHP process to terminate right away not giving a chance for the queue manager to increment the attempts on the job.
The result was timed out jobs retrying indefinitely until the message retention period passes and SQS deletes them. That means they were never reported as failed.
In the 2.4.1
release, we use the pcntl
PHP extension to gracefully terminate the job before it's killed by Lambda.
We recommend that you upgrade to the latest version of vapor-core
and deploy your projects to use the new timeout mechanism.