1. Go to this page and download the library: Download jrdnrc/queue-stats library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jrdnrc / queue-stats example snippets
return [
// ...
/**
* Define your workers here, including the redis connection,
* the queues they are running, and how many
* processes each worker should run
*/
'queues' => [
'default' => [
'connection' => 'redis',
'queue' => ['default'],
'processes' => 1,
],
'media-processing' => [
'connection' => 'redis2',
'queue' => ['image-transforming', 'video-transforming'],
'processes' => 5,
],
],
];