make sentinel enabled env var

This commit is contained in:
Andras Bacsai
2024-05-10 09:21:19 +02:00
parent b5d9d6e268
commit db9a68e9c9
3 changed files with 7 additions and 2 deletions

View File

@@ -44,7 +44,9 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted
if ($this->server->isFunctional()) {
$this->cleanup(notify: false);
$this->removeCoolifyYaml();
// $this->server->checkSentinel();
if (config('coolify.is_sentinel_enabled')) {
$this->server->checkSentinel();
}
}
} catch (\Throwable $e) {
send_internal_notification('ServerStatusJob failed with: ' . $e->getMessage());