Grey Multiverse is a collection of resource indended to serve various needs around qreysoft, built with the intention of creating a unity for accessing and managing data in and around the Greysoft ecosystem.
Laravel includes an Artisan command that will start a queue worker and process new jobs as they are pushed onto the queue. You may run the worker using the queue:work
Artisan command. Note that once the queue:work
command has started, it will continue to run until it is manually stopped or you close your terminal Laravel Docs
The system dispatches tasks and jobs requiring heavy system resource consumtion to a queue thereby limiting the strain on the user waiting for these tasks to complete. You may run the following command to begin processing all queues:
php artisan queue:work
To keep the queue:work
process running permanently in the background, you should use a process monitor such as Supervisor to ensure that the queue worker does not stop running.
Where it is not possible to run queues, the task scheduller has also been implemented as an alternative that will automaticaally proccess queues and other schedulled tasks:
* * * * * cd /installation-path && php artisan schedule:run >> /dev/null 2>&1
This is best run as a cron job.