From 0f5690db8589ee793dd6da93a5883625fce29b66 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 25 Jun 2024 13:59:39 +0200 Subject: [PATCH] fix: run container commands on high priority --- app/Livewire/Project/Shared/ExecuteContainerCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Livewire/Project/Shared/ExecuteContainerCommand.php b/app/Livewire/Project/Shared/ExecuteContainerCommand.php index dc3a62c56..343915d9c 100644 --- a/app/Livewire/Project/Shared/ExecuteContainerCommand.php +++ b/app/Livewire/Project/Shared/ExecuteContainerCommand.php @@ -2,6 +2,7 @@ namespace App\Livewire\Project\Shared; +use App\Actions\Server\RunCommand; use App\Models\Application; use App\Models\Server; use App\Models\Service; @@ -137,7 +138,7 @@ public function runCommand() } else { $exec = "docker exec {$container_name} {$cmd}"; } - $activity = remote_process([$exec], $server, ignore_errors: true); + $activity = RunCommand::run(server: $server, command: $exec); $this->dispatch('activityMonitor', $activity->id); } catch (\Throwable $e) { return handleError($e, $this);