Skip to content

Commit 0f5690d

Browse files
committed
fix: run container commands on high priority
1 parent 3ebb35a commit 0f5690d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Livewire/Project/Shared/ExecuteContainerCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Livewire\Project\Shared;
44

5+
use App\Actions\Server\RunCommand;
56
use App\Models\Application;
67
use App\Models\Server;
78
use App\Models\Service;
@@ -137,7 +138,7 @@ public function runCommand()
137138
} else {
138139
$exec = "docker exec {$container_name} {$cmd}";
139140
}
140-
$activity = remote_process([$exec], $server, ignore_errors: true);
141+
$activity = RunCommand::run(server: $server, command: $exec);
141142
$this->dispatch('activityMonitor', $activity->id);
142143
} catch (\Throwable $e) {
143144
return handleError($e, $this);

0 commit comments

Comments
 (0)