From d9c39ce4e9050b33a2ff9d2cee21646a18d4cc92 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 16 Oct 2024 18:36:57 -0300 Subject: [PATCH] Improvment: Wont spawn extra queues (#1508) --- src/ProvisioningPlan.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ProvisioningPlan.php b/src/ProvisioningPlan.php index 1a7cef6a..522dfafc 100644 --- a/src/ProvisioningPlan.php +++ b/src/ProvisioningPlan.php @@ -111,7 +111,9 @@ public function deploy($environment) } foreach ($supervisors as $supervisor => $options) { - $this->add($options); + if ($options->maxProcesses > 0) { + $this->add($options); + } } event(new MasterSupervisorDeployed($this->master));