Merge pull request #1392 from SkynetLabs/fix-health-checker

Fix disabling portal in health checker
This commit is contained in:
Ivaylo Novakov 2021-11-26 10:51:39 -05:00 committed by GitHub
commit f2e39f49c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ async def check_disk():
inspect_json = json.loads(inspect)
if inspect_json[0]["State"]["Running"] is True:
# mark portal as unhealthy
os.popen("docker exec health-check cli/disable")
os.popen("docker exec health-check cli disable 'critical free disk space'")
time.sleep(300) # wait 5 minutes to propagate dns changes
os.popen("docker stop sia") # stop sia container
return await send_msg(message, force_notify=True)