1. Go to this page and download the library: Download cakedc/queue-monitor 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/ */
cakedc / queue-monitor example snippets
// ...
'QueueMonitor' => [
// With this setting you can enable or disable the queue monitoring, the queue
// monitoring is enabled by default
'disable' => false,
// mailer config, the default is `default` mailer, you can ommit
// this setting if you use default value
'mailerConfig' => 'default',
// the default is 30 minutes, you can ommit this setting if you use the default value
'longJobInMinutes' => 30,
// the default is 7 days, you can ommit this setting if you use the default value
// its advised to set this value correctly after queue usage analysis to avoid
// high space usage in db
'purgeLogsOlderThanDays' => 7,
// comma separated list of recipients of notification about long running queue jobs
'notificationRecipients' => '[email protected],[email protected],[email protected]',
],
// ...