Ops: STATUS agenta aktualizowany takze przy in_sync i parkingu
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user