This commit is contained in:
Andras Bacsai
2023-06-16 21:16:30 +02:00
parent a4c5105d78
commit 9d6557bacb
9 changed files with 23 additions and 11 deletions

View File

@@ -66,6 +66,7 @@
}
function revive() {
if (checkHealthInterval) return true;
console.log('Checking server\'s health...')
checkHealthInterval = setInterval(() => {
fetch('/api/health')
@@ -85,6 +86,7 @@
}
function upgrade() {
if (checkIfIamDeadInterval) return true;
console.log('Update initiated.')
checkIfIamDeadInterval = setInterval(() => {
fetch('/api/health')