kgiedrius / laravel-random-job-database-queue-driver
Modified Database Queue driver which takes pushed jobs in random order
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/kgiedrius/laravel-random-job-database-queue-driver
Requires
- php: >=5.5.0
- illuminate/console: 5.0.x|5.1.x|5.2.x
- illuminate/support: 5.0.x|5.1.x|5.2.x
- symfony/process: ~2.6|~3.0
This package is not auto-updated.
Last update: 2025-10-09 23:58:40 UTC
README
Just like the database queue driver, but process jobs in random order.
Install
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