pinnacle / doctrine-queue-worker
A worker for Laravel applications that interact with Doctrine
Installs: 35 363
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- doctrine/orm: ^2.6
- illuminate/contracts: ^10.0
- illuminate/queue: ^10.0
- illuminate/support: ^10.0
Requires (Dev)
- mockery/mockery: ^1.3.1
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-04-09 23:30:05 UTC
README
doctrine-queue-worker is a package intended to address common issues with running Laravel 10.x queue worker processes with an application that interacts with the Doctrine ORM.
Features
- Re-queues jobs and kills the worker process when the
EntityManager
closes due to an exception. - Ensures the
EntityManager
's database connection remains open between jobs. - Clears the
EntityManager
between job executions.
Installation
- Require the library via Composer:
composer require pinnacle/doctrine-queue-worker
Usage
- Setup worker processes to invoke the
doctine:queue:work
artisan command. Options for the command are the same as the built-in Laravelqueue:work
command. - Use a process manager like supervisor to ensure your queue workers will be restarted after they die.