Skip to content

Commit 04d31d3

Browse files
patrickelectricWilliangalvani
authored andcommitted
core: services: helper: main: Fix timeout for check_website
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent 7aae9ac commit 04d31d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/services/helper/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def check_website(site: Website) -> WebsiteStatus:
470470
port = int(str(site.value["port"]))
471471
path = str(site.value["path"])
472472

473-
response = Helper.simple_http_request(hostname, port=port, path=path, timeout=10, method="GET")
473+
response = Helper.simple_http_request(hostname, port=port, path=path, timeout=5, method="GET")
474474
website_status = WebsiteStatus(site=site, online=False)
475475

476476
log_msg = f"Running check_website for '{hostname}:{port}'"

0 commit comments

Comments
 (0)