Ubuntu 18.04 , Nginx , php-fpm 7.2, Mysql Laravel 5.7
SITUATION
I have a video site where users upload videos which are processed into various things (screenshots, different resolutions,...). I use queues when a video is uploaded and I need to run php artisan queue:work --tries=3 command. I use the database Driver and it works fine.
ISSUE
I would like to remove the "command line" step. That is, automate the whole process so that when a video is uploaded, it's passed to be processed to the queue and processed when the entries before it are done processing. So far, the closest thing I was advised about was to use a sort of dynamic cron job.
I'm not sure I follow. But the queue system is suppose to be automated. But to have it all automated, you need to setup a service, like supervisor that runs in the background and check the queue for stuffs to be processed. Take a look at the laravel documenation over here: