PHPackages                             mcfedr/doctrine-delay-queue-driver-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. [Database &amp; ORM](/categories/database)
4. /
5. mcfedr/doctrine-delay-queue-driver-bundle

Abandoned → [mcfedr/queue-manager-bundle](/?search=mcfedr%2Fqueue-manager-bundle)Symfony-bundle[Database &amp; ORM](/categories/database)

mcfedr/doctrine-delay-queue-driver-bundle
=========================================

A bundle for running symfony background tasks with doctrine as the driver

3.9.0(7y ago)221.0k4MITPHPPHP &gt;=5.5

Since Jul 28Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (11)Versions (29)Used By (0)

Doctrine Delay Queue Driver Bundle
==================================

[](#doctrine-delay-queue-driver-bundle)

A driver for [Queue Manager Bundle](https://github.com/mcfedr/queue-manager-bundle) that uses [Doctrine](http://www.doctrine-project.org/) to store delayed jobs

This driver doesn't run jobs, it requires another driver to actually process jobs.

It currently **only** works with MySQL as a native query is required to find jobs in a concurrency safe way.

[![Latest Stable Version](https://camo.githubusercontent.com/3c1486f5953016608e2cb3256e0f725fdd931ac04513bb2370a4d884304f9113/68747470733a2f2f706f7365722e707567782e6f72672f6d63666564722f646f637472696e652d64656c61792d71756575652d6472697665722d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/mcfedr/doctrine-delay-queue-driver-bundle)[![License](https://camo.githubusercontent.com/715b1009260faf1ab19a2ef577dee2e54f5be0d69a12b8bf2b5143b949d8d1ef/68747470733a2f2f706f7365722e707567782e6f72672f6d63666564722f646f637472696e652d64656c61792d71756575652d6472697665722d62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/mcfedr/doctrine-delay-queue-driver-bundle)[![Build Status](https://camo.githubusercontent.com/7b950521d75669c4f57281ef80c5c929f6f69d3890faf741d463fbe96302d326/68747470733a2f2f7472617669732d63692e6f72672f6d63666564722f646f637472696e652d64656c61792d71756575652d6472697665722d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mcfedr/doctrine-delay-queue-driver-bundle)

Usage
-----

[](#usage)

You should run the daemon for delay in addition to any other daemons you are using. This runner simply moves jobs from Doctrine into your other job queues. Because its not doing much work generally a single instance can cope with a high number of jobs.

```
./bin/console mcfedr:queue:{name}-runner
```

Where `{name}` is what you used in the config. Add `-v` or more to get detailed logs.

Install
-------

[](#install)

### Composer

[](#composer)

```
composer require mcfedr/doctrine-delay-queue-driver-bundle

```

### AppKernel

[](#appkernel)

Include the bundle in your AppKernel

```
public function registerBundles()
{
    $bundles = [
        ...
        new Mcfedr\QueueManagerBundle\McfedrQueueManagerBundle(),
        new Mcfedr\DoctrineDelayQueueDriverBundle\McfedrDoctrineDelayQueueDriverBundle(),

```

Config
------

[](#config)

With this bundle installed you can setup your queue manager config similar to this:

```
mcfedr_queue_manager:
    managers:
        delay:
            driver: doctrine_delay
            options:
                entity_manager: default
                default_manager: default
                default_manager_options: []

```

This will create a `QueueManager` service named `"mcfedr_queue_manager.delay"`

- `entity_manager` - Doctrine entity manager to use
- `default_manager` - Default job processor
- `default_manager_options` - Default options to pass to job processor `put`

Options to `QueueManager::put`
------------------------------

[](#options-to-queuemanagerput)

- `time` - A `\DateTime` object of when to schedule this job
- `delay` - Number of seconds from now to schedule this job
- `manager` - Use a different job processor for this job
- `manager_options` - Options to pass to the processors `put` method

### Note

[](#note)

If `delay` or `time` option is less then 30 seconds the job will be scheduled for immediate execution

Tables
------

[](#tables)

After you have installed you will need to do a schema update so that the table of delayed tasks is created

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 98% 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

Every ~31 days

Recently: every ~92 days

Total

28

Last Release

2740d ago

Major Versions

1.2.4 → 2.0.02016-07-29

2.0.0 → 3.0.02016-08-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/7039999f29a83140d61116032ec1684c752412e458ad1999e15eea2f8808498c?d=identicon)[mcfedr](/maintainers/mcfedr)

---

Top Contributors

[![mcfedr](https://avatars.githubusercontent.com/u/704356?v=4)](https://github.com/mcfedr "mcfedr (49 commits)")[![nonanerz](https://avatars.githubusercontent.com/u/19575167?v=4)](https://github.com/nonanerz "nonanerz (1 commits)")

---

Tags

doctrinequeuejobscheduletask

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mcfedr-doctrine-delay-queue-driver-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mcfedr-doctrine-delay-queue-driver-bundle/health.svg)](https://phpackages.com/packages/mcfedr-doctrine-delay-queue-driver-bundle)
```

###  Alternatives

[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[mcfedr/queue-manager-bundle

A bundle for managing job queues

1094.3k7](/packages/mcfedr-queue-manager-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

813.1k](/packages/ahmed-bhs-doctrine-doctor)[anorgan/qutee

Simple queue manager and task processor for PHP

711.9k1](/packages/anorgan-qutee)

PHPackages © 2026

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