Skip to content

Commit

Permalink
refactor(scheduler): improve ping (#54)
Browse files Browse the repository at this point in the history
* refactor(frontend): change filter labels

* refactor(scheduler): change timeout request
  • Loading branch information
gilsondev authored Oct 14, 2023
1 parent a3357b4 commit d834c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/src/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def check_availability(domain: str) -> bool:
logger.info("Checking domain availability...")
try:
response = requests.head(f"http://{domain}", timeout=5)
response = requests.head(f"http://{domain}", timeout=45)
return response.status_code >= 200 and response.status_code < 500
except (exceptions.ConnectionError, exceptions.Timeout):
return False
Expand Down

0 comments on commit d834c11

Please sign in to comment.