fix: run container commands on high priority

This commit is contained in:
Andras Bacsai 2024-06-25 13:59:39 +02:00
parent 3ebb35a5cd
commit 0f5690db85

View File

@ -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);