Skip to content

Releases: pierotto/supervisor

3.1.0

Choose a tag to compare

@pierotto pierotto released this 03 Sep 12:20
e00b886

What's Changed

  • Add optional process group for generated programs by @pierotto in #7

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 = worker

The 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 update at a group name requires supervisor 3.2 or newer.
  • Adding group to a project already running under supervisor renames its processes, and a
    group-scoped update will not remove the old ungrouped ones. The README documents the one-off
    migration.

Full Changelog: 3.0.0...3.1.0

3.0.0

Choose a tag to compare

@pierotto pierotto released this 30 Aug 16:20
ca1903b

What's Changed

  • Add Symfony 8 support for version 3 by @pierotto in #6

Full Changelog: 2.2.0...3.0.0

Updated bundle path and minor improvements

Choose a tag to compare

@pierotto pierotto released this 19 Apr 08:39
23aa430
  • Moved SupervisorBundle to Infrastructure\Symfony namespace
  • Updated README with deployment recommendation
  • Added strict type annotations to improve PHPStan compatibility

BC: ⚠️ Changed bundle registration path:
From: Pierotto\SupervisorBundle\SupervisorBundle
To: Pierotto\SupervisorBundle\Infrastructure\Symfony\SupervisorBundle

Added configuration for startsescs option

Choose a tag to compare

@pierotto pierotto released this 27 Mar 18:42
db028f7

Added configuration for startsescs option

Extending the supervisor configuration

Choose a tag to compare

@pierotto pierotto released this 27 Sep 16:46
2eba26f
  • adding more configurations to the setup
  • changing the package structure
  • update README.md

Added configuration for prefix program name

Choose a tag to compare

@pierotto pierotto released this 06 Jul 09:02
ab203c5

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

Choose a tag to compare

@pierotto pierotto released this 08 Jun 14:31
62a992a

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

Initialization

Choose a tag to compare

@pierotto pierotto released this 11 May 16:51

First released version