PHPackages                             kuborgh/queue-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. [Queues &amp; Workers](/categories/queues)
4. /
5. kuborgh/queue-bundle

ActiveSymfony-bundle[Queues &amp; Workers](/categories/queues)

kuborgh/queue-bundle
====================

Implements a queue for asynchronous processing of symfony command

v1.0.1(10y ago)31.7k[1 issues](https://github.com/kuborgh/queue-bundle/issues)MITPHP

Since Jan 11Pushed 8y ago5 watchersCompare

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

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Queue Bundle
============

[](#queue-bundle)

This is a queue implementation for symfony commands. It helps to asynchronously execute symfony commands, by writing then into a database and process them with a queue runner, spawned by a cron job.

It has the following features:

- Pure PHP implementation - No need for extra software on the server
- Cron-based run-detection - Check periodically if the queue still runs
- Stall-detection - Check by PID if the command still runs or has silently failed
- Short waitstate between jobs - No need to wait a minute until the cron is run again. Start jobs in &lt; 10s.
- Symfony commands for monitoring and queueing
- MySQL database storage - This makes it easy for debugging insight and manipulation
- Configurable concurrency - Run more jobs in parallel, when needed
- Prioritization - 5 levels of priority to prefer important commands
- Duplicate check - Skip adding the same command twice to the queue, when the first run is still pending.

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

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require kuborgh/queue-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
