Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rossiluca's avatar

Laravel Vapor task timeout

Hi, I’m running an app in Laravel Vapor. I have a task that import a file Excel in the app and store the data. But it throw error because after 10 seconds the task timeout. In the cloudfront logs i get this:

Task timeout after 10.02 seconds

In the app it returns error 502 with the message internal server error

0 likes
1 reply
rossiluca's avatar
rossiluca
OP
Best Answer
Level 3

In case someone need it you have to change the default time your in your vapor.yml configuration file. By default Vapor limit web request execution time at 10 seconds.

You can change it like this:

id: 2
name: vapor-laravel-app
environments:
    production:
        timeout: 180
        build:
            - 'composer install --no-dev'
1 like

Please or to participate in this conversation.