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
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:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user