2017 © Pedro Peláez
 

library safe-queue

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

image

maxbrokman/safe-queue

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  • Friday, February 17, 2017
  • by maxbrokman
  • Repository
  • 4 Watchers
  • 20 Stars
  • 42,427 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 5 Open issues
  • 15 Versions
  • 33 % Grown

The README.md

SafeQueue

Latest Version on Packagist Build Status Test Coverage Software License, (*1)

A Laravel Queue worker that's safe for use with Laravel Doctrine, (*2)

When to use SafeQueue

  • [x] You use Laravel 5
  • [x] You use Laravel Doctrine
  • [x] Devops say the CPU usage of queue:listen is unacceptable
  • [x] You want to do php artisan queue:work --daemon without hitting cascading EntityManager is closed exceptions

How it Works

SafeQueue overrides a small piece of Laravel functionality to make the queue worker daemon safe for use with Doctrine. It makes sure that the worker exits if the EntityManager is closed after an exception. For good measure it also clears the EM before working each job., (*3)

Installation

Install using composer, (*4)

composer require maxbrokman/safe-queue

Once you've got the codez add the following to your service providers in app.php, (*5)

MaxBrokman\SafeQueue\DoctrineQueueProvider::class

Usage

php artisan doctrine:queue:work  connection --daemon -sleep=3 --tries=3 ...

All options are identical to Laravel's own queue:work method., (*6)

Contributing

PRs welcome., (*7)

vendor/bin/php-cs-fixer fix
vendor/bin/phpunit

Maintenance

I maintain this as part of my day job, please open any issues on Github, (*8)

The Versions

17/02 2017

0.3.x-dev

0.3.9999999.9999999-dev

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

17/02 2017

v0.3.0

0.3.0.0

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

13/12 2016

0.2.x-dev

0.2.9999999.9999999-dev

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

13/12 2016

v0.2.4

0.2.4.0

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

13/12 2016

dev-lumenSupport

dev-lumenSupport

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

22/11 2016

v0.2.3

0.2.3.0

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

21/11 2016

0.1.x-dev

0.1.9999999.9999999-dev

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

16/11 2016

v0.2.2

0.2.2.0

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

09/11 2016

v0.2.1

0.2.1.0

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

08/09 2016

v0.1.2

0.1.2.0

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

08/09 2016

v0.2.0

0.2.0.0

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

08/09 2016

dev-0.2-dev

dev-0.2-dev

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

06/09 2016

dev-master

9999999-dev

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

14/07 2016

v0.1.1

0.1.1.0

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman

14/07 2016

v0.1.0

0.1.0.0

A Laravel Doctrine friendly daemonising queue worker for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Brokman