Download the PHP package zorn-v/messenger-supervisor-bundle without Composer
On this page you can find all versions of the php package zorn-v/messenger-supervisor-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zorn-v/messenger-supervisor-bundle
More information about zorn-v/messenger-supervisor-bundle
Files in zorn-v/messenger-supervisor-bundle
Package messenger-supervisor-bundle
Short Description Supervisor for symfony messenger:consume commands
License MIT
Informations about the package messenger-supervisor-bundle
Symfony messenger supervisor bundle
Inspired by laravel horizon, supervisor for messenger:consume
commands.
Runs messenger:consume
commands with parameters from config and watch that commands is running and start they if needed.
Installation
composer require zorn-v/messenger-supervisor-bundle
Usage
./bin/console messenger:supervisor
Issues
if you kill main supervisor proccess with SIGKILL
signal, it can not shut down consumers, and after restart it will start copies of they. You should kill supervisor with SIGTERM
Config
In config all parameters have same names as messenger:consume
parameters.
You can check by ./bin/console messenger:consume --help
Also check symfony documentation about best practice https://symfony.com/doc/current/messenger.html#deploying-to-production
Deploy
You also need to set up messenger:supervisor
in system supervisor for autostart this command and manage it via command like service messenger-supervisor restart
systemd
systemd
is standard init system on most linux distros.
Create unit in /etc/systemd/system
dir:
Change User
to the Unix user on your server if needed.
Now tell systemd about new unit, enable it for run at system start and run it
supervisord
You can install it on Ubuntu, for example, via:
Supervisor configuration files typically live in a /etc/supervisor/conf.d
directory.
For example, you can create a new messenger-supervisor.conf
file:
Change user
to the Unix user on your server if needed. Next, tell Supervisor to read your config and start your workers:
See the Supervisor docs for more details.
All versions of messenger-supervisor-bundle with dependencies
symfony/lock Version ^4.4|^5.0
symfony/messenger Version ^4.4|^5.0
symfony/process Version ^4.4|^5.0