Ops: STATUS agenta aktualizowany takze przy in_sync i parkingu

This commit is contained in:
tisachi
2026-11-09 03:28:05 +01:00
parent ced51b9348
commit 3f424e6a54

View File

@@ -183,8 +183,10 @@ class Agent:
if action == ACTION_PARKED:
self.log(f"SHA {sha[:12]} zaparkowany po {self._attempt_fail_count} nieudanych probach —"
" deploy dopiero dla nowego commita (awaryjnie: reczny hostdeploy.py na hoście)")
self.write_status("PARKED", sha)
return
if action != ACTION_DEPLOY:
self.write_status("in_sync", sha)
return
self.log(f"deploy {sha[:12]} (staging na: {(self._last_success_sha or 'nic')[:12]})")
self._last_attempt_sha = sha