deboorn / laravelcommandbusresqueex by daniel.boorn
forked from deedod/laravel-resque-ex

Laravel Command Bus Resque connector for Queue with Exponential Backoff.
23
0
2
Package Data
Maintainer Username: daniel.boorn
Maintainer Contact: daniel.boorn@gmail.com (Daniel Boorn)
Package Create Date: 2016-02-09
Package Last Update: 2016-03-28
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-03-27 03:21:40
Package Statistics
Total Downloads: 23
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Laravel Command Bus Resque Ex

This package allows you to connect to Resque when using Queue and the Command Bus.

This is a fork of deedod's laravel-resque-ex modified to work with Laravel 5 Command Bus.

Also adds automatic exponential backoff with default delay of 30 seconds and max delay of 2 hours.

Requirements


  • PHP 5.4+
  • Laravel 5.0

Installation


Add the following to your project's composer.json:

"require": {
	"deboorn/laravelcommandbusresqueex": "dev-master"
}

Now you need to run the following to install the package:

$ composer update

Next you need to add the following service provider to your app/config/app.php:

'Resque\ServiceProviders\ResqueServiceProvider'

Now you need to add the following to your /app/config/queue.php "connections" section:

"resque" => [
	"driver" => "resque"
]

If you wish to use this driver as your default Queue driver you will need to set the following as your "default" drive in app/config/queue.php:

"default" => "resque",

Enqueing a Job


Same as Laravel Command Bus Queued Commands.

Starting Resque Listener


Execute resque:listen command with comma seperated list of queue names:

$ php artisan resque:listen --queue=default

Starting Resque Scheduler Listener


Execute resque:schedulerlisten command with comma seperated list of queue names:

$ php artisan resque:schedulerlisten --queue=default

Further Documentation


License


Laravel Resque is open-sourced software licensed under the MIT license.