fix(updates): skip redownloading cached packages and disable background updater in CI
CI Test Suite / Run Component Tests & Pipeline Verification (push) Canceled after 0s
Build and Push LOGAR Runner / Build & Push Runner Image (push) Successful in 7m52s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Successful in 8m6s
CI Test Suite / Run Component Tests & Pipeline Verification (push) Canceled after 0s
Build and Push LOGAR Runner / Build & Push Runner Image (push) Successful in 7m52s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Successful in 8m6s
This commit is contained in:
+4
-2
@@ -2232,8 +2232,10 @@ async def update_checker_loop(interval_hours: int = 1):
|
||||
Background worker that periodically queries the upstream repository
|
||||
and automatically downloads/caches client binary update packages locally on the Hub.
|
||||
"""
|
||||
# Brief initial pause after socket startup
|
||||
await asyncio.sleep(5)
|
||||
if os.environ.get("LOGAR_DISABLE_AUTO_UPDATE", "").lower() in ("1", "true", "yes"):
|
||||
return
|
||||
initial_delay = int(os.environ.get("LOGAR_UPDATE_CHECK_INITIAL_DELAY", "60"))
|
||||
await asyncio.sleep(initial_delay)
|
||||
while True:
|
||||
try:
|
||||
mgr: ServerUpdateManager = SERVER_STATE.get("update_manager") or UPDATE_MANAGER
|
||||
|
||||
Reference in New Issue
Block a user