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

ashishbl's avatar

Running long process on remote server with Queue

I need to create an mp4 file on a remote server on the customer's request. This process typically takes 40-45 minutes. I created a job that SSH on a remote server and runs multiple commands in order to create an mp4 file. I am using Laravel Forge to deploy the application. In queue setting - I set the Timeout value to 0, which means ideally job should not give timeout error.

However, I am getting error like:

	[2020-05-24 11:34:20] production.ERROR: App\Jobs\MP4Recorder has been attempted too many times or run too long. The job may have previously timed out. {"exception":"[object] (Illuminate\Queue\MaxAttemptsExceededException(code: 0): App\Jobs\MP4Recorder has been attempted too many times or run too long. The job may have previously timed out. at /home/forge/<APP_NAME>/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:647)

0 likes
2 replies
bugsysha's avatar

Check your code cause those restrictions might override server settings.

imls's avatar

Thanks for the solution , i am using imls app to get skins for the best games, get it here imlsapk

Please or to participate in this conversation.