adt/background-queue-symfony

Background queue for Symfony using RabbitMQ.

Maintainers

👁 appsdevteam

Package info

github.com/AppsDevTeam/background-queue-symfony

pkg:composer/adt/background-queue-symfony

Statistics

Installs: 296

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.2 2023-09-25 15:19 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 1fdc85a6f55b3ffa57d1106e8211a461e9515655

symfonyrabbitmqbackground-queue

This package is auto-updated.

Last update: 2026-06-25 21:44:42 UTC


README

1.1 Installation

composer require adt/background-queue-symfony

1.2 Configuration

return [
 ADT\BackgroundQueueSymfony\Bundle\BackgroundQueueBundle::class => ['all' => true]
];
background_queue:
 callbacks:
 sendEmail: ['@App\Model\Mailer', 'sendEmail']
 notifyOnNumberOfAttempts: 5
 tempDir: '%tmp_dir%'
 locksDir: '%kernel.project_dir%/data/locks'
 connection: '%env(DATABASE_URL)%'
 queue: '%env(PROJECT_NAME)%'
 logger: '@logger'
 onBeforeProcess: ['@App\Model\Database', 'switchDatabase']
 onError: ['ADT\Utils\Guzzle', 'handleException']
 onAfterProcess: ['@App\Model\Database', 'switchDatabaseBack']

1.3 RabbitMQ (optional)

1.3.1 Installation

How to install RabbitMQ, check https://github.com/AppsDevTeam/background-queue

1.3.2 Configuration

background_queue:
 producer: '@ADT\BackgroundQueue\Broker\AmqpLib\Producer'
 waitingJobExpiration: 1000

1.4 Documentation

https://github.com/AppsDevTeam/background-queue