Modified Database Queue driver which takes pushed jobs in random order
kgiedrius/laravel-random-job-database-queue-driver is a Laravel package for modified database queue driver which takes pushed jobs in random order.
It currently has 2 GitHub stars and 29 downloads on Packagist (latest version 1.8).
Install it with composer require kgiedrius/laravel-random-job-database-queue-driver.
Discover more Laravel packages by kgiedrius
or browse all Laravel packages to compare alternatives.
Last updated
Just like the database queue driver, but process jobs in random order.
Require the latest version of this package with Composer
composer require KGiedrius/laravel-random-job-database-queue-driver:"1.x"
Add the Service Provider to the providers array in config/app.php
KGiedrius\Queue\DbRandServiceProvider::class,
You need to create the migration table for queues and run it.
$ php artisan queue:table
$ php artisan migrate
In config/queue.php.
'default' => 'DbRand',
'connections' => array(
'DbRand' => array(
'driver' => 'DbRand',
'table' => 'jobs',
'queue' => 'default',
'expire' => 60,
),
...
}
For more info see http://laravel.com/docs/queues