diff --git a/.github/workflows/check_domains.yml b/.github/workflows/check_domains.yml index b18cb4b49e..5f7ccd485d 100644 --- a/.github/workflows/check_domains.yml +++ b/.github/workflows/check_domains.yml @@ -66,7 +66,7 @@ jobs: import requests import time - def check_domain_redirection(domain, prefix, max_attempts=3): + def check_domain_redirection(domain, prefix, max_attempts=5): """Check if the given domain redirects correctly, with delays between retries.""" valid_destinations = ["ultralytics.com", "yolo11.com"] url = f"https://{prefix}{domain}" @@ -75,7 +75,7 @@ jobs: for attempt in range(max_attempts): try: if attempt > 0: - delay = 2 ** attempt # 2, 4, 8 seconds... + delay = 2 ** attempt # 2, 4, 8, 16, 32 seconds... time.sleep(delay) response = requests.get(url, allow_redirects=True, timeout=10)