PHPackages                             amadeus-m/resque - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. amadeus-m/resque

ActiveSymfony-bundle[Caching](/categories/caching)

amadeus-m/resque
================

A Symfony 2-3 bundle to manage Resque job queues

1.0.3(8y ago)05.1k1[1 PRs](https://github.com/amadeus-m/resque/pulls)MITPHP

Since Aug 3Pushed 5y ago2 watchersCompare

[ Source](https://github.com/amadeus-m/resque)[ Packagist](https://packagist.org/packages/amadeus-m/resque)[ Docs](https://github.com/amadeus-m/resque/)[ RSS](/packages/amadeus-m-resque/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (6)Versions (10)Used By (0)

[![Build Status](https://camo.githubusercontent.com/877503eae2f5453df744c7e087f1183582875dba0a25e2a4e256f6e6d1c2f1b7/68747470733a2f2f7472617669732d63692e6f72672f72657371756562756e646c652f7265737175652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/resquebundle/resque)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a13dec540c787d17aa571e0a9f533455e4f0721c524e421fb4b9496d9bdf0d73/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72657371756562756e646c652f7265737175652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/resquebundle/resque/?branch=master)

**This project IS under ACTIVE development (July 2016)**

ResqueBundle
============

[](#resquebundle)

This is a fork of the BCCResqueBundle as \***that** bundle is no longer being activly maintained. There are a lot of outstanding issues, pull requests and bugs that need to be fixed in that project, with no activity, so we forked it, and will activly support and develop the code further in this repo.

This is also a rebrand of Mpclarkson\\ResqueBundle to place the code under a GitHub Organisation for future proof distributed development

**Contributions are welcome**

The resque bundle provides integration of [php-resque](https://github.com/chrisboulton/php-resque/) to Symfony2-3. It is inspired from resque, a Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later.

Features:
---------

[](#features)

- Creating a Job, with container access in order to leverage your Symfony services
- Enqueue a Job with parameters on a given queue
- Creating background worker on a given queue
- An interface to monitor your queues, workers and job statuses
- Schedule jobs to run at a specific time or after a number of seconds delay
- Auto re-queue failed jobs, with back-off strategies

Todos:
------

[](#todos)

- PSR4
- Update admin to Bootstrap 3
- Migration from BCC notes
- Travis CI
- Symfony 3 compatibility
- Implement Full Unit Tests
- Make decision to support PHP 7+ ONLY ;-)
- Code quality - Scrutinizer 9.5+
- Replicate functionality of the resque-web ruby lib (i.e .retry and delete failed jobs etc)
- Community contributions / Ignored PRs
- Fix bugs
- Log management
- Job status tracking
- Redis configuration
- Localisation

Migrating from BCCResqueBundle:
-------------------------------

[](#migrating-from-bccresquebundle)

Here are some notes to make it easier to migrate from the BCCResqueBundle:

- Find and replace all instances of `BCC\ResqueBundle` with `ResqueBundle\Resque` throughout your app (e.g. use statements)
- Update your `routing.yml` by replacing `@BCCResque` with `@ResqueBundle`
- The `bcc:` prefix for all commands has been dropped
- Stop and restart all workers
- The container service definition`bcc_resque.resque` has been replaced with `resque`. You can either search and replace this or create an alias as follows:

```
 bcc_resque.resque:
      alias: resque
      lazy: true
```

Migrating from Mpclarkson\\ResqueBundle:
----------------------------------------

[](#migrating-from-mpclarksonresquebundle)

- Replace in composer with

```
composer remove mpclarkson/resque-bundle
composer require resquebundle/resque

```

- replace all `Mpclarkson\ResqueBundle` with `ResqueBundle\Resque`
- Ensure AppKernel.php loads `new ResqueBundle\Resque\ResqueBundle(),`

Installation and configuration:
-------------------------------

[](#installation-and-configuration)

### Requirements

[](#requirements)

Make sure you have redis installed on your machine:

### Get the bundle

[](#get-the-bundle)

Add `mpclarkson/resque-bundle` to your dependencies:

```
{
    "require": {
        ...
        "resquebundle/resque": "dev-master"
    }
    ...
}
```

To install, run `php composer.phar [update|install]`.

### Add ResqueBundle to your application kernel

[](#add-resquebundle-to-your-application-kernel)

```
