fix: show already up to date instead of full update flow when no updates available
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/fb575403-f4f0-41bb-8fb1-12f7d9874009 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
51537c47b3
commit
ad6cf6c498
@@ -2375,6 +2375,10 @@ async def api_updates_run():
|
||||
if status == "RUNNING":
|
||||
return {"ok": True, "status": "already_running"}
|
||||
|
||||
available = await loop.run_in_executor(None, check_for_updates)
|
||||
if not available:
|
||||
return {"ok": True, "status": "no_updates"}
|
||||
|
||||
# Clear stale status and log BEFORE starting the unit
|
||||
_write_update_status("RUNNING")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user