Skip to content

Commit

Permalink
group consumers so supervisor sends signals in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Phobetor authored Oct 31, 2021
1 parent 7029eee commit 403658f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Services/RabbitMqSupervisor.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ public function generateSupervisorConfiguration()
),
'include' => array(
'files' => sprintf('%s*.conf', $this->paths['worker_configuration_directory'])
),
'group:all' => array(
'programs' => implode(',', array_merge(
array_keys($this->consumers),
array_keys($this->multipleConsumers),
array_keys($this->batchConsumers),
array_keys($this->rpcServers)
))
)
));
file_put_contents(
Expand Down

0 comments on commit 403658f

Please sign in to comment.