Merge pull request #784 from tcely/patch-5

Prevent unintended unhealthy restarts
This commit is contained in:
meeb 2025-02-28 06:06:12 +11:00 committed by GitHub
commit e33d30a3d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,9 @@ def do_heatlhcheck(url):
if __name__ == '__main__':
# if it is marked as intentionally down, nothing else matters
if os.path.exists('/run/service/gunicorn/down'):
sys.exit(0)
try:
url = sys.argv[1]
except IndexError: