fix job
This commit is contained in:
parent
77667be570
commit
556168892d
1 changed files with 2 additions and 2 deletions
|
|
@ -39,9 +39,9 @@ public function uniqueId(): int
|
|||
public function handle(): void
|
||||
{
|
||||
try {
|
||||
$container = getContainerStatus(server: $this->server, all_data: true, container_id: 'coolify-proxy', throwError: true);
|
||||
$container = getContainerStatus(server: $this->server, all_data: true, container_id: 'coolify-proxy', throwError: false);
|
||||
$status = data_get($container, 'State.Status');
|
||||
if (data_get($this->server,'proxy.status') !== $status) {
|
||||
if ($status && data_get($this->server, 'proxy.status') !== $status) {
|
||||
$this->server->proxy->status = $status;
|
||||
if ($this->server->proxy->status === 'running') {
|
||||
$traefik = $container['Config']['Labels']['org.opencontainers.image.title'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue