1. Go to this page and download the library: Download web-chefs/queue-butler 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/ */
web-chefs / queue-butler example snippets
'providers' => [
// Other Service Providers
WebChefs\QueueButler\QueueButlerServiceProvider::class,
];
// Create Batch Job Queue Processor Task
$scheduledEvent = $schedule->command('queue:batch --time-limit=280 --job-limit=1000 --sleep=10');
// Match cache expiry with frequency
// Set cache mutex expiry to One min (default is 1440)
$scheduledEvent->expiresAt = 5;
$scheduledEvent->everyFiveMinutes()
->withoutOverlapping()
->runInBackground();