feat: cleanup sentinel on server deletion

fix: Sentinel should not be enabled on build servers
This commit is contained in:
Andras Bacsai
2024-10-17 11:21:43 +02:00
parent b58ff07832
commit 4c95647b96
8 changed files with 27 additions and 8 deletions

View File

@@ -556,7 +556,7 @@ $schema://$host {
return $encrypted;
}
public function sentinelUpdateAt(bool $isReset = false)
public function sentinelHeartbeat(bool $isReset = false)
{
$this->sentinel_updated_at = $isReset ? now()->subMinutes(6000) : now();
$this->save();
@@ -568,7 +568,7 @@ $schema://$host {
public function isSentinelEnabled()
{
return $this->isMetricsEnabled() || $this->isServerApiEnabled();
return $this->isMetricsEnabled() || $this->isServerApiEnabled() || !$this->isBuildServer();
}
public function isMetricsEnabled()