We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1861b3a commit 9000b9fCopy full SHA for 9000b9f
health/services.py
@@ -40,11 +40,7 @@ def fn(app):
40
client = app.config["HTTPCLIENT"]
41
registry_url = _compute_internal_endpoint(app, endpoint)
42
try:
43
- status_code = client.get(
44
- registry_url,
45
- verify=False,
46
- timeout=app.config.get("GUNICORN_HEALTH_CHECK_TIMEOUT", 2),
47
- ).status_code
+ status_code = client.get(registry_url, verify=False, timeout=2).status_code
48
okay = status_code == 200
49
message = ("Got non-200 response for worker: %s" % status_code) if not okay else None
50
return (okay, message)
0 commit comments