2017 © Pedro Peláez
 

symfony-bundle sqs-queue-driver-bundle

A bundle for running symfony background tasks with SQS as the engine

image

mcfedr/sqs-queue-driver-bundle

A bundle for running symfony background tasks with SQS as the engine

  • Thursday, July 19, 2018
  • by mcfedr
  • Repository
  • 1 Watchers
  • 4 Stars
  • 19,447 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 3 Forks
  • 1 Open issues
  • 27 Versions
  • 15 % Grown

The README.md

Sqs Queue Driver Bundle

A driver for Queue Manager Bundle that uses Amazon SQS, (*1)

Latest Stable Version License Build Status, (*2)

Usage

The sqs runner is a Symfony command. You can runner multiple instances if you need to handle higher numbers of jobs., (*3)

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

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

Install

Composer

composer require mcfedr/sqs-queue-driver-bundle

AppKernel

Include the bundle in your AppKernel, (*5)

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

Config

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

mcfedr_queue_manager:
    managers:
        default:
            driver: sqs
            options:
                default_url: https://sqs.eu-west-1.amazonaws.com/...
                region: eu-west-1
                credentials:
                    key: 'my-access-key-id'
                    secret: 'my-secret-access-key'
                queues:
                    name: https://sqs.eu-west-1.amazonaws.com/...
                    name2: https://sqs.eu-west-1.amazonaws.com/...

This will create a QueueManager service named "mcfedr_queue_manager.default", (*7)

  • default_url - Default SQS queue url
  • region required - The region where your queue is
  • credentials optional - Specify your key and secret This is optional because the SDK can pick up your credentials from a variety of places
  • queues optional - Allows you to setup a mapping of short names for queues, this makes it easier to use multiple queues and keep the config in one place

Options to QueueManager::put

  • url - A string with the url of a queue
  • queue - A string with the name of a queue in the config
  • time - A \DateTime object of when to schedule this job. Note: SQS can delay jobs up to 15 minutes
  • delay - Number of seconds from now to schedule this job. Note: SQS can delay jobs up to 15 minutes
  • visibilityTimeout - Number of seconds during which Amazon SQS prevents other consumers from receiving and processing the message.

The Versions

19/07 2018

dev-master

9999999-dev

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

19/07 2018

3.5.0

3.5.0.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

12/03 2018

3.4.3

3.4.3.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

20/02 2018

3.4.2

3.4.2.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

20/02 2018

dev-trav

dev-trav

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

26/01 2018

3.4.1

3.4.1.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

24/01 2018

3.4.0

3.4.0.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

03/11 2017

3.3.0

3.3.0.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

19/07 2017

3.2.2

3.2.2.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

19/07 2017

3.2.1

3.2.1.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

20/04 2017

3.2.0

3.2.0.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

13/02 2017

3.1.1

3.1.1.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

15/08 2016

3.1.0

3.1.0.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

04/08 2016

3.0.3

3.0.3.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

04/08 2016

3.0.2

3.0.2.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

04/08 2016

3.0.1

3.0.1.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

04/08 2016

3.0.0

3.0.0.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

29/07 2016

2.0.2

2.0.2.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

29/07 2016

2.0.1

2.0.1.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

29/07 2016

2.0.0

2.0.0.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

28/07 2016

1.1.4

1.1.4.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

28/07 2016

1.1.3

1.1.3.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

28/07 2016

1.1.2

1.1.2.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

28/07 2016

1.1.1

1.1.1.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

28/07 2016

1.1.0

1.1.0.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

28/07 2016

1.0.1

1.0.1.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule

28/07 2016

1.0.0

1.0.0.0

A bundle for running symfony background tasks with SQS as the engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fred Cox

task aws queue job sqs schedule