Do you want those processes to run in the background (no output back to PHP), or should they block the PHP process while they are running (and give response back to PHP)?
May 31, 2018
3
Level 2
Called php exec from scheduled jobs and console commands
I have console command that I can run manually and it will start up some pm2 node processes for me.
I can't seem to find a way to do this automatically though, as the exec command doesn't seem to work when run in a job (my first idea), and suprisingly it also doesn't work if I add my already working console job from to the console kernal so that it is scheduled.
This seems to be the same problem(https://laracasts.com/discuss/channels/laravel/exec-in-queued-job) , but I can't get exec_shell working. Anyone have any ideas?
Please or to participate in this conversation.