Download the PHP package mcfedr/resque-bundle without Composer
On this page you can find all versions of the php package mcfedr/resque-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package resque-bundle
Resque Bundle
A bundle for managing jobs with php-resque
Requirements
You will need a Redis server
You can try something like
apt-get install redis-server
Or
brew install redis
Install
Composer
php composer.phar require mcfedr/resque-bundle
AppKernel
Include the bundle in your AppKernel
public function registerBundles()
{
$bundles = array(
...
new Mcfedr\ResqueBundle\McfedrResqueBundle(),
Configuration
Your configuration should be something like this
mcfedr_resque:
host: 127.0.0.1
port: 6379
default_queue: default
prefix: 'my_app:'
Options
host
- The redis host nameport
- The redis portprefix
- The prefix for resque keys in redis - Use this when multiple resque instances are running in a single redis host to separate them completelydefault_queue
- Name of queue to use if not specifieddebug
- If set to true no calls to Resque will actually be madetrack_status
- Set to true to enable job tracking for all jobs
Usage
- Your background tasks are services that implement
Mcfedr\ResqueBundle\Worker\WorkerInterface
- Use
mcfedr_resque.manager
to put tasks into the queue -
Run the resque worker
VVERBOSE=1 QUEUE=default APP_INCLUDE=app/bootstrap.php.cache PREFIX="my_app:" REDIS_BACKEND=127.0.0.1:6379 ./bin/resque
-
And optionally the scheduler
VVERBOSE=1 PREFIX="my_app:" REDIS_BACKEND=127.0.0.1:6379 ./bin/resque-scheduler
Tests
./vendor/bin/phpunit
All versions of resque-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5
symfony/symfony Version ~2.8|~3.0
mcfedr/php-resque Version ~1.3
mcfedr/php-resque-scheduler Version ~1.4
symfony/symfony Version ~2.8|~3.0
mcfedr/php-resque Version ~1.3
mcfedr/php-resque-scheduler Version ~1.4
The package mcfedr/resque-bundle contains the following files
Loading the files please wait ....