This commit is contained in:
Andras Bacsai
2023-06-08 10:55:50 +02:00
parent b3cdd7df3c
commit 0add4155ab
9 changed files with 41 additions and 38 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Livewire\Project\Application;
use App\Jobs\ApplicationContainerStatusJob;
use App\Jobs\ContainerStopJob;
use App\Models\Application;
use Livewire\Component;
@@ -68,4 +69,12 @@ class Deploy extends Component
$this->application->save();
$this->emit('applicationStatusChanged');
}
public function pollStatus()
{
dispatch(new ApplicationContainerStatusJob(
application: $this->application,
container_name: generate_container_name($this->application->uuid),
));
}
}