From b66a3753e5e220620048e17a4148ce1bcf57f380 Mon Sep 17 00:00:00 2001 From: Alex Montoanelli Date: Mon, 14 Oct 2024 16:23:11 -0300 Subject: [PATCH] Improvment: Wont spawn extra queues --- 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));