Fix server status check and add new job

This commit is contained in:
Andras Bacsai committed 2023-11-17 14:22:05 +01:00
1 parent d38d50dca2
commit b66c9835b7
5 files changed
+31 -25

No files matched your search

+2 -1
View File
@@ -37,8 +37,9 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted
public function handle(): void
{
// ray("checking server status for {$this->server->id}");
ray("checking container statuses for {$this->server->id}");
try {
$this->server->checkServerRediness();
$containers = instant_remote_process(["docker container ls -q"], $this->server);
if (!$containers) {
return;