From 49e8a96aab1b014d1beb6a44784578559d47913a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 16:10:51 +0000 Subject: [PATCH] Ensure background checker cancellation is not swallowed Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/038b6d9a-0298-41d7-949f-40069cd3320f Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- app/sovran_systemsos_web/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/sovran_systemsos_web/server.py b/app/sovran_systemsos_web/server.py index 07c81dd..3a6cbec 100644 --- a/app/sovran_systemsos_web/server.py +++ b/app/sovran_systemsos_web/server.py @@ -4401,6 +4401,7 @@ async def _background_domain_reachability_checker(): continue if domains_to_check: + # Preserve domain order while removing duplicates. unique_domains = list(dict.fromkeys(domains_to_check)) results = await asyncio.gather(*[ loop.run_in_executor(None, _check_domain_reachable, domain) @@ -4412,6 +4413,8 @@ async def _background_domain_reachability_checker(): result["checked_at"] = checked_at _domain_reachability_cache[domain] = result consecutive_failures = 0 + except asyncio.CancelledError: + raise except Exception: consecutive_failures += 1 logger.exception("Background domain reachability checker error")