Project to add queue items to the database and process them from a daemon worker
Requires PHP 7.0+
- Add to composer.json of project, including adding the repository
- composer update
- Register your module in your Projects Escort by adding the following static property:
public static $modules = [
'Gems\Queue' => \Gems\Queue\ModuleSettings::class,
];The composer package installs a bin file in vendor/bin/queue that you can use to start the listener
The listener will not run any processes until it finds a file named queue.test in /var/settings.
Removing this file will halt the queue, without the need to stop the worker.