fix: disable unreachable/revived notifications for now
This commit is contained in:
parent
086138fbd9
commit
d9d0837024
@ -525,7 +525,7 @@ public function isServerReady(int $tries = 3)
|
|||||||
// Reached max number of retries
|
// Reached max number of retries
|
||||||
if ($this->unreachable_notification_sent === false) {
|
if ($this->unreachable_notification_sent === false) {
|
||||||
ray('Server unreachable, sending notification...');
|
ray('Server unreachable, sending notification...');
|
||||||
$this->team?->notify(new Unreachable($this));
|
// $this->team?->notify(new Unreachable($this));
|
||||||
$this->update(['unreachable_notification_sent' => true]);
|
$this->update(['unreachable_notification_sent' => true]);
|
||||||
}
|
}
|
||||||
if ($this->settings->is_reachable === true) {
|
if ($this->settings->is_reachable === true) {
|
||||||
@ -825,7 +825,7 @@ public function validateConnection()
|
|||||||
'unreachable_count' => 0,
|
'unreachable_count' => 0,
|
||||||
]);
|
]);
|
||||||
if (data_get($server, 'unreachable_notification_sent') === true) {
|
if (data_get($server, 'unreachable_notification_sent') === true) {
|
||||||
$server->team?->notify(new Revived($server));
|
// $server->team?->notify(new Revived($server));
|
||||||
$server->update(['unreachable_notification_sent' => false]);
|
$server->update(['unreachable_notification_sent' => false]);
|
||||||
}
|
}
|
||||||
return ['uptime' => true, 'error' => null];
|
return ['uptime' => true, 'error' => null];
|
||||||
|
Loading…
Reference in New Issue
Block a user