feat: server disabled by overflow

This commit is contained in:
Andras Bacsai
2024-02-25 23:34:01 +01:00
parent c7da43f50d
commit 64fca99c26
6 changed files with 165 additions and 0 deletions

View File

@@ -151,6 +151,11 @@ class Server extends BaseModel
}
return false;
}
public function disableServerDueToOverflow() {
$this->settings->update([
'disabled_by_overflow' => true,
]);
}
public function isServerReady(int $tries = 3)
{
if ($this->skipServer()) {