pinnacle / doctrine-queue-worker
A worker for Laravel applications that interact with Doctrine
Package info
github.com/activated-insights/doctrine-queue-worker
pkg:composer/pinnacle/doctrine-queue-worker
v4.0.0-beta.1
2025-08-04 18:36 UTC
Requires
- php: ^8.2
- doctrine/orm: ^3.1
- illuminate/contracts: ^12.0
- illuminate/queue: ^v12.0
- illuminate/support: ^v12.0
Requires (Dev)
- mockery/mockery: ^1.3.1
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2026-03-04 20:04:02 UTC
README
doctrine-queue-worker is a package intended to address common issues with running Laravel 11.x queue worker processes with an application that interacts with the Doctrine ORM.
Features
- Re-queues jobs and kills the worker process when the
EntityManagercloses due to an exception. - Ensures the
EntityManager's database connection remains open between jobs. - Clears the
EntityManagerbetween job executions.
Installation
- Require the library via Composer:
composer require pinnacle/doctrine-queue-worker
Usage
- Setup worker processes to invoke the
doctine:queue:workartisan command. Options for the command are the same as the built-in Laravelqueue:workcommand. - Use a process manager like supervisor to ensure your queue workers will be restarted after they die.