2017 © Pedro Peláez
 

symfony-bundle resque-bundle

Symfony2 bundle for Resque via php-resque

image

shonm/resque-bundle

Symfony2 bundle for Resque via php-resque

  • Wednesday, January 3, 2018
  • by ShonM
  • Repository
  • 1 Watchers
  • 12 Stars
  • 3,124 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

ResqueBundle Build Status

Create a Job, (*1)

// src/Acme/ResqueBundle/Job/TestJob.php
namespace Acme\ResqueBundle\Job;

class HelloWorldJob
{
    public function perform ()
    {
        fwrite(STDOUT, "Hello " . $this->args['hello'] . "!\n");
    }
}

Post your Job, (*2)

$container->get('resque')->add('Acme\ResqueBundle\Job\HelloWorldJob', 'queuename', array('hello' => 'world'));

Hire a Worker, (*3)

app/console resque:worker:start queuename, (*4)

Party!, (*5)


Best Practices

  1. Jobs should be small and simple
  2. Workers should be idempotent and transactional
  3. Design for concurrency - use connection pooling

Development & Testing

$ composer install --dev
$ bin/phpunit

The Versions

03/01 2018
02/01 2018

dev-SS/The-configuration-key-is-unsupported-for-service-definition

dev-SS/The-configuration-key-is-unsupported-for-service-definition https://github.com/ShonM/ResqueBundle

Symfony2 bundle for Resque via php-resque

  Sources   Download

MIT

The Development Requires

redis queue resque php-resque woker

29/04 2013

dev-master

9999999-dev https://github.com/ShonM/ResqueBundle

Symfony2 bundle for Resque via php-resque

  Sources   Download

MIT

The Development Requires

redis queue worker resque php-resque

06/04 2013
30/03 2013