PHPackages                             zlik/magento-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. zlik/magento-resque

ActiveLibrary

zlik/magento-resque
===================

Magento Upgrade Resque allows to organize a queue of SQL queries and use multiple workers to execute them in parallel during Magento upgrade.

0.1.0(11y ago)381MITPHP

Since Apr 2Pushed 10y ago3 watchersCompare

[ Source](https://github.com/zlik/magento-resque)[ Packagist](https://packagist.org/packages/zlik/magento-resque)[ Docs](https://github.com/magento-ecg/magento-resque)[ RSS](/packages/zlik-magento-resque/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

magento-resque
==============

[](#magento-resque)

The main idea for the fast Magento database upgrade was to run SQL queries in parallel. This approach was first introduced in [Magento Upgrade Replay](https://github.com/magento-ecg/magento-upgrade-replay) project.

Magento Resque is an utility intended to be used as an extendible standalone solution for SQL queries paralell execution during Magento upgrade.

It's nothing more than a tiny wrapper around [PHP Resque](https://github.com/chrisboulton/php-resque) – a Radis-backed library for creating jobs, placing them into a queue and processing by workers. Please reffer to  for detailed documentation.

Please note: there is a similar project for using PHP Resque with Magento we are not associated with called [mage-resque](https://github.com/ajbonner/mage-resque). The main and the only purpose of our tool is to help speed up Magento DB upgrade, while [mage-resque](https://github.com/ajbonner/mage-resque) is all-purpose. Feel free to check it out.

Magento Resque basically implements two classes:

*Queue* – reads SQL queries from the specified file, wraps them into Resque jobs and enqueues the jobs in the Redis queue.

*Job* – run by workers. Instantiates Magento DB adapter and runs SQL queries wrapped into the job.

Installation
------------

[](#installation)

The easiest way to install Magento Resque is using [Composer](http://getcomposer.org/).

Create `shell/magento-resque/composer.json` file under Magento root directory.

Include Magento Resque to your project:

```
composer require zlik/magento-resque

```

Run `composer install`.

Usage Example
-------------

[](#usage-example)

Change the current working directory to `demo`.

To enqueue SQL queries from the `sql/queries.sql` file to the `upgrade` queue run the following command:

```
$ php resque.php sql/queries.sql

```

To launch eight simultaneous workers:

```
$ QUEUE='upgrade' COUNT=8 ../vendor/bin/resque

```

The result should be like this:

```
[notice] Starting work on (Job{upgrade} | ID: 1 | Job | [{"q":"CREATE TABLE `resque_test_1` ..."}])
[notice] Starting work on (Job{upgrade} | ID: 2 | Job | [{"q":"CREATE TABLE `resque_test_2` ..."}])
[notice] (Job{upgrade} | ID: 2 | Job | [{"q":"CREATE TABLE `resque_test_2` ..."}]) has finished
[notice] (Job{upgrade} | ID: 1 | Job | [{"q":"CREATE TABLE `resque_test_1` ..."}]) has finished

```

\##Requirements

PHP Redis requires

- PHP 5.3+
- Redis 2.2+

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4065d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/472255?v=4)[Alex Zarichnyi](/maintainers/zlik)[@zlik](https://github.com/zlik)

---

Top Contributors

[![zlik](https://avatars.githubusercontent.com/u/472255?v=4)](https://github.com/zlik "zlik (11 commits)")

### Embed Badge

![Health badge](/badges/zlik-magento-resque/health.svg)

```
[![Health](https://phpackages.com/badges/zlik-magento-resque/health.svg)](https://phpackages.com/packages/zlik-magento-resque)
```

###  Alternatives

[chrisboulton/php-resque-scheduler

php-resque-scheduler is a PHP port of resque-scheduler, which adds support for scheduling items in the future to Resque.

2712.5M14](/packages/chrisboulton-php-resque-scheduler)[bcc/resque-bundle

BCCResqueBundle

119735.8k2](/packages/bcc-resque-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
