fix: containerstatusjob

This commit is contained in:
Andras Bacsai
2023-09-26 15:07:33 +02:00
parent fabb97330a
commit 3eb628b773
8 changed files with 14 additions and 18 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Livewire\Project\Service;
use App\Jobs\ContainerStatusJob;
use App\Models\Service;
use DanHarrin\LivewireRateLimiting\WithRateLimiting;
use Livewire\Component;
@@ -23,6 +24,7 @@ class Index extends Component
public function manualRefreshStack() {
try {
$this->rateLimit(5);
dispatch_sync(new ContainerStatusJob($this->service->server));
$this->refreshStack();
} catch(\Throwable $e) {
return handleError($e, $this);