The process "'/usr/bin/php8.4' 'artisan' invoke-serialized-closure" exceede d the timeout of 60 seconds in Concurrency::run() #55295
-
Laravel Version12.3.0 PHP Version8.4 Database Driver & VersionNo response DescriptionI create a command, it command should work from 3am until 23pm. is_plum_time function returns bool to check time. Steps To Reproduce`
` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
[previous exception] [object] (Symfony\Component\Process\Exception\ProcessTimedOutException(code: 0): The process "'/usr/bin/php8.4' 'artisan' invoke-serialized-closure" exceeded the timeout of 60 seconds. at /vendor/symfony/process/Process.php:1181) |
Beta Was this translation helpful? Give feedback.
-
The default framework/src/Illuminate/Process/PendingProcess.php Lines 40 to 45 in 0b96d9b You can either use the The relevant code would be your But I assume you might have omitted some parts you deemed as irrelevant. |
Beta Was this translation helpful? Give feedback.
The default
Concurrency
driver is theProcessDriver
, which will convert each task to be run as aIlluminate\Process\PendingProcess
, and this has a default timeout of 60 seconds.framework/src/Illuminate/Process/PendingProcess.php
Lines 40 to 45 in 0b96d9b
You can either use the
ForkDriver
(needs thespatie/fork
package to be installed, check the docs for how to use it), or write, and register, a custom driver which increases or removes that timeout.The relevant code would be your
WorkerJob
, and from the snippet you posted there will always be …