2017 © Pedro Peláez
 

symfony-bundle resque-bundle

A bundle for resque

image

mcfedr/resque-bundle

A bundle for resque

  • Tuesday, May 30, 2017
  • by mcfedr
  • Repository
  • 1 Watchers
  • 7 Stars
  • 11,183 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 21 Versions
  • 3 % Grown

The README.md

Resque Bundle

A bundle for managing jobs with php-resque, (*1)

Latest Stable Version License Build Status SensioLabsInsight, (*2)

Requirements

You will need a Redis server, (*3)

You can try something like, (*4)

apt-get install redis-server

Or, (*5)

brew install redis

Install

Composer

php composer.phar require mcfedr/resque-bundle

AppKernel

Include the bundle in your AppKernel, (*6)

public function registerBundles()
{
    $bundles = array(
        ...
        new Mcfedr\ResqueBundle\McfedrResqueBundle(),

Configuration

Your configuration should be something like this, (*7)

mcfedr_resque:
    host: 127.0.0.1
    port: 6379
    default_queue: default
    prefix: 'my_app:'

Options

  • host - The redis host name
  • port - The redis port
  • prefix - The prefix for resque keys in redis - Use this when multiple resque instances are running in a single redis host to separate them completely
  • default_queue - Name of queue to use if not specified
  • debug - If set to true no calls to Resque will actually be made
  • track_status - Set to true to enable job tracking for all jobs

Usage

  1. Your background tasks are services that implement Mcfedr\ResqueBundle\Worker\WorkerInterface
  2. Use mcfedr_resque.manager to put tasks into the queue
  3. Run the resque worker, (*8)

    VVERBOSE=1 QUEUE=default APP_INCLUDE=app/bootstrap.php.cache PREFIX="my_app:" REDIS_BACKEND=127.0.0.1:6379 ./bin/resque, (*9)

  4. And optionally the scheduler, (*10)

    VVERBOSE=1 PREFIX="my_app:" REDIS_BACKEND=127.0.0.1:6379 ./bin/resque-scheduler, (*11)

Tests

./vendor/bin/phpunit

The Versions

30/05 2017
24/04 2017

4.1.1

4.1.1.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

04/02 2016

4.1.0

4.1.0.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

28/10 2015

dev-redis-check

dev-redis-check

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

08/09 2015

4.0.0

4.0.0.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

08/09 2015

3.2.2

3.2.2.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

08/09 2015

3.2.1

3.2.1.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

08/09 2015

3.2.0

3.2.0.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

04/09 2015

3.1.0

3.1.0.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

09/10 2014

2.0.0

2.0.0.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

02/10 2014

1.1.6

1.1.6.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

02/10 2014
02/10 2014

1.1.4

1.1.4.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

02/10 2014
02/10 2014
01/10 2014

1.1.1

1.1.1.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

05/06 2014

1.1.0

1.1.0.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires

04/06 2014

1.0.0

1.0.0.0

A bundle for resque

  Sources   Download

MIT

The Requires

 

The Development Requires