Fix log drain container notification bug
This commit is contained in:
parent
689480003a
commit
8a9ee84925
1 changed files with 5 additions and 0 deletions
|
|
@ -73,6 +73,11 @@ public function handle(): void
|
||||||
$this->server->team->notify(new ContainerStopped('Coolify Log Drainer', $this->server, null));
|
$this->server->team->notify(new ContainerStopped('Coolify Log Drainer', $this->server, null));
|
||||||
$this->server->update(['log_drain_notification_sent' => true]);
|
$this->server->update(['log_drain_notification_sent' => true]);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if ($this->server->log_drain_notification_sent) {
|
||||||
|
$this->server->team->notify(new ContainerRestarted('Coolify Log Drainer', $this->server));
|
||||||
|
$this->server->update(['log_drain_notification_sent' => false]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
send_internal_notification("CheckLogDrainContainerJob failed on ({$this->server->id}) with: " . $e->getMessage());
|
send_internal_notification("CheckLogDrainContainerJob failed on ({$this->server->id}) with: " . $e->getMessage());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue