fix(hub): offload upstream update check to thread executor and increase test timeout
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 3m26s
Build and Push LOGAR Runner / Build & Push Runner Image (push) Canceled after 9m29s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Canceled after 6m8s

This commit is contained in:
2026-10-03 21:45:46 +02:00
parent 57eb05fab1
commit 3e7870c278
2 changed files with 11 additions and 10 deletions
+2 -1
View File
@@ -2237,7 +2237,8 @@ async def update_checker_loop(interval_hours: int = 1):
while True:
try:
mgr: ServerUpdateManager = SERVER_STATE.get("update_manager") or UPDATE_MANAGER
mgr.check_upstream_updates(force=False, auto_download_clients=True)
loop = asyncio.get_running_loop()
await loop.run_in_executor(None, lambda: mgr.check_upstream_updates(force=False, auto_download_clients=True))
except Exception as e:
print(f"[!] Warning in update checker background loop: {e}")
await asyncio.sleep(interval_hours * 3600)