PHPackages                             mpclarkson/resque-bundle - 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. mpclarkson/resque-bundle

Abandoned → [https://github.com/resquebundle/resque](/?search=https%3A%2F%2Fgithub.com%2Fresquebundle%2Fresque)Symfony-bundle

mpclarkson/resque-bundle
========================

A Symfony 2-3 bundle to manage Resque job queues

53974PHP

Since Aug 3Pushed 9y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#resquebundle)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ad93cc0f33b93b49133cb32071d7dbdc0244ee3a5617b8298a26d1619913042a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d70636c61726b736f6e2f7265737175652d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mpclarkson/resque-bundle/?branch=master)[![Build Status](https://camo.githubusercontent.com/cc81fa7ce1d8b93c1b213442be503fc91f5fdb9b3da240041bf2e00ce9ce414c/68747470733a2f2f7472617669732d63692e6f72672f6d70636c61726b736f6e2f7265737175652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mpclarkson/resque-bundle)

**THIS REPO HAS BEEN MOVED TO ITS OWN GITHUB ORGANISATION, THE CODE HERE IS FOR THOSE THAT DEPEND ON IT BUT NEW CODE, BUG FIXES, PULL REQUESTS ETC SHOULD BE MADE IN THE NEW REPO HERE: **

---

This is a fork of the BCCResqueBundle, as it is no longer being maintained. There are a lot of outstanding issues, pull requests and bugs that need to be fixed. **Contributions are welcome - I don't have the bandwidth to maintain this alone.**

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+ ;-)
- 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

ORIGINAL TODOs:

- Log management
- Job status tracking
- Redis configuration
- Localisation
- Tests

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 `Mpclarkson\ResqueBundle` 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
```

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": {
        ...
        "mpclarkson/resque-bundle": "dev-master"
    }
    ...
}
```

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

### Add ResqueBundle to your application kernel

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

```
