mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 20:17:10 +00:00
antifrodpobeda
This commit is contained in:
@@ -11,7 +11,7 @@ class CheckerHealthCheck(BaseHealthCheckBackend):
|
|||||||
def check_status(self) -> None:
|
def check_status(self) -> None:
|
||||||
try:
|
try:
|
||||||
response = httpx.get(
|
response = httpx.get(
|
||||||
f"{settings.ANTIFRAUD_ADDRESS}/ping", timeout=1
|
f"{settings.CHECKER_API_ENDPOINT}/ping", timeout=1
|
||||||
)
|
)
|
||||||
if response.status_code >= status.INTERNAL_SERVER_ERROR:
|
if response.status_code >= status.INTERNAL_SERVER_ERROR:
|
||||||
self.add_error("Checker service is unaccessible")
|
self.add_error("Checker service is unaccessible")
|
||||||
|
|||||||
Reference in New Issue
Block a user