2017 © Pedro Peláez
 

symfony-bundle doctrine-delay-queue-driver-bundle

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

image

mcfedr/doctrine-delay-queue-driver-bundle

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

  • Friday, June 22, 2018
  • by mcfedr
  • Repository
  • 1 Watchers
  • 2 Stars
  • 10,994 Installations
  • PHP
  • 0 Dependents
  • 2 Suggesters
  • 3 Forks
  • 0 Open issues
  • 29 Versions
  • 19 % Grown

The README.md

Doctrine Delay Queue Driver Bundle

A driver for Queue Manager Bundle that uses Doctrine to store delayed jobs, (*1)

This driver doesn't run jobs, it requires another driver to actually process jobs., (*2)

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

Latest Stable Version License Build Status, (*4)

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., (*5)

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

Where {name} is what you used in the config. Add -v or more to get detailed logs., (*6)

Install

Composer

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

AppKernel

Include the bundle in your AppKernel, (*7)

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

Config

With this bundle installed you can setup your queue manager config similar to this:, (*8)

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", (*9)

  • 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

  • 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

If delay or time option is less then 30 seconds the job will be scheduled for immediate execution, (*10)

Tables

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

The Versions

19/07 2017

3.4.6

3.4.6.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

19/07 2017

3.4.5

3.4.5.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

07/06 2017

3.4.4

3.4.4.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

07/06 2017

dev-fix_delete_unpersisted

dev-fix_delete_unpersisted

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

13/02 2017

3.4.3

3.4.3.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

13/02 2017

3.4.2

3.4.2.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

16/08 2016

3.4.1

3.4.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

16/08 2016

3.4.0

3.4.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

15/08 2016

3.3.1

3.3.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

15/08 2016

3.3.0

3.3.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

08/08 2016

3.2.1

3.2.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

05/08 2016

3.2.0

3.2.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

05/08 2016

3.1.0

3.1.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

04/08 2016

3.0.0

3.0.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

29/07 2016

2.0.0

2.0.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

28/07 2016

1.2.4

1.2.4.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

28/07 2016

1.2.3

1.2.3.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

28/07 2016

1.2.2

1.2.2.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

28/07 2016

1.2.1

1.2.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

28/07 2016

1.2.0

1.2.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

28/07 2016

1.1.0

1.1.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule

28/07 2016

1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task doctrine queue job schedule