feat: experimental sentinel

This commit is contained in:
Andras Bacsai
2024-05-07 15:41:50 +02:00
parent 2b422a542a
commit f6f959a897
13 changed files with 1038 additions and 327 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Livewire\Project\Shared;
use App\Actions\Application\StopApplicationOneServer;
use App\Actions\Docker\GetContainersStatus;
use App\Events\ApplicationStatusChanged;
use App\Jobs\ContainerStatusJob;
use App\Models\Server;
@@ -90,7 +91,8 @@ class Destination extends Component
}
public function refreshServers()
{
ContainerStatusJob::dispatchSync($this->resource->destination->server);
GetContainersStatus::run($this->resource->destination->server);
// ContainerStatusJob::dispatchSync($this->resource->destination->server);
$this->loadData();
$this->dispatch('refresh');
ApplicationStatusChanged::dispatch(data_get($this->resource, 'environment.project.team.id'));