Releases: pierotto/supervisor
Release list
3.1.0
What's Changed
Process groups
New optional group option. When set, the generated configuration gains a [group:<name>] section
listing every program:
supervisor:
group: 'myapp'
programs:
worker:
command: 'php %kernel.project_dir%/bin/console app:worker'[group:myapp]
programs = workerThe processes are then addressed as myapp:worker, so a project sharing a supervisord with other
projects can restart only its own during a deploy:
supervisorctl stop myapp:*
# ... deploy ...
supervisorctl reread
supervisorctl update myapp
supervisorctl start myapp:*This replaces the machine-wide supervisorctl stop all / supervisorctl reload. Note that reload
restarts the supervisord daemon itself and therefore every project on the machine.
Upgrading
No changes required. group defaults to an empty string, so a configuration that does not set it
generates byte-for-byte the same output as 3.0.0, and $group is the last constructor argument of
SupervisorConfigGenerator with a default.
Two things to know before adopting the option:
- Targeting
supervisorctl updateat a group name requires supervisor 3.2 or newer. - Adding
groupto a project already running under supervisor renames its processes, and a
group-scopedupdatewill not remove the old ungrouped ones. The README documents the one-off
migration.
Full Changelog: 3.0.0...3.1.0
3.0.0
Updated bundle path and minor improvements
- Moved SupervisorBundle to Infrastructure\Symfony namespace
- Updated README with deployment recommendation
- Added strict type annotations to improve PHPStan compatibility
BC:
From: Pierotto\SupervisorBundle\SupervisorBundle
To: Pierotto\SupervisorBundle\Infrastructure\Symfony\SupervisorBundle
Added configuration for startsescs option
Added configuration for startsescs option
Extending the supervisor configuration
- adding more configurations to the setup
- changing the package structure
- update README.md
Added configuration for prefix program name
Release introduces the ability to define a prefix for the program name. The prefix is optional, and by default, it is an empty string.
Usage example:
supervisor:
prefix: 'beta'
Added configuration for autostart and startretries
Added configuration for autostart and startretries
supervisor:
programs:
program_name:
command: 'php %kernel.project_dir%/bin/console rabbitmq:consumer -m 10 queue_name'
numprocs: 1
autostart: true
autorestart: true
killasgroup: true
startretries: 10