ignore command center errors

This commit is contained in:
Andras Bacsai
2023-06-07 15:39:08 +02:00
parent 9c055f2149
commit 6e084db3d9
6 changed files with 32 additions and 24 deletions

View File

@@ -26,7 +26,7 @@ class RunCommand extends Component
{
try {
$this->validate();
$activity = remote_process([$this->command], Server::where('uuid', $this->server)->first());
$activity = remote_process([$this->command], Server::where('uuid', $this->server)->first(), ignore_errors: true);
$this->emit('newMonitorActivity', $activity->id);
} catch (\Exception $e) {
return general_error_handler($e);