@alex29 but have you restarted the Queue after you changed the job timeout? Maybe it remembers the old value.
You can also set a timeout when you run the queue, using this:
php artisan queue:work --timeout=60
60 is seconds just so you know.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm getting this error when trying to run a queued job. The job handles video uploads to an S3 bucket. However, I have already tried setting the timeout property on the job class to 3600 seconds just to be sure. But it still times out even before 3600 seconds have passed. What would be other possible causes for this?
Illuminate\Queue\MaxAttemptsExceededException: App\Jobs\UploadToS3 has been attempted too many times or run too long. The job may have previously timed out.
Please or to participate in this conversation.