queue jobs are run in a row
if you want jobs running in //, use sevral workers.
if you don't want to wait the result of your exec, follow this link
https://stackoverflow.com/questions/3819398/php-exec-command-or-similar-to-not-wait-for-result
Hi,
I'm using horizon for my jobs. When I run a shell command in my job:
exec(env('FFMPEG_PATH').' -i '.$this->file. ' '.$newFileFullPath);
And have horizon running in the background php artisan horizon. I see that the script is executed (i can see it's running for a long time, it's converting a file). However, why am even seeing this? I would only expect to see that a job has dispatched and is running. For example: Processed: App\Jobs\CampaignFileUploadJob . It looks like my exec() command is blocking all other jobs that are dispatched.
Any idea if this is normal and how I can fix this?
Please or to participate in this conversation.