Download the PHP package pdffiller/laravel-queue-qless without Composer
On this page you can find all versions of the php package pdffiller/laravel-queue-qless. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-queue-qless
Qless Queue driver for Laravel
Installation
You can install this package via composer using this command:
The package will automatically register itself using Laravel auto-discovery.
Setup connection in config/queue.php
Also you can set Qless queue as default in config/queue.php
Redis connection in config/database.php
And add Laravel Qless service provider to app.php
Usage
Once you completed the configuration you can use Laravel Queue API. If you used other queue drivers you do not need to change anything else. If you do not know how to use Queue API, please refer to the official Laravel documentation: http://laravel.com/docs/queues
Also you can use additional features.
Topics
Topic help you to put a job to different queues.
First, you must to create a subscription. You can use pattern for name of topics.
Symbol *
- one word, #
- few words divided by point .
.
Examples: first.second.*
, *.second.*
, #.third
.
Than you can put job to all subscribers.
Custom Handler
Job Handler helps you to create a custom route for jobs.
Custom Handler example:
You must add to a service provider.
Recurring Jobs
Sometimes it's not enough simply to schedule one job, but you want to run jobs regularly. In particular, maybe you have some batch operation that needs to get run once an hour and you don't care what worker runs it. Recurring jobs are specified much like other jobs:
Sharding
If you compare Qless sharding with the DB sharding, then they have little in common. Qless gets random write-connection for all jobs. Data reading occurs in a circle from all connections.
Setup redis connections for sharding in config/database.php
:
Then set the shards via redis_connection
key in config/queue.php
file:
Testing
You can run the tests with:
Contribution
You can contribute to this package by discovering bugs and opening issues. Please, add to which version of package you create pull request or issue. (e.g. [1.2] Fatal error on push job)
License
Laravel Qless Queue driver is open-sourced software licensed under the MIT License.
See the LICENSE.txt
file for more.
© 2018-2019 PDFfiller
All rights reserved.