feat(heartbeat): change default target to 'last' and remove target option from UI

This commit is contained in:
Abhimanyu Saharan
2026-02-15 01:37:12 +05:30
parent 55af799223
commit 0ac22dbd7a
6 changed files with 9 additions and 67 deletions

View File

@@ -235,10 +235,7 @@ def _update_agent_heartbeat(
if isinstance(raw, dict):
heartbeat.update(raw)
heartbeat["every"] = payload.every
if payload.target is not None:
heartbeat["target"] = payload.target
elif "target" not in heartbeat:
heartbeat["target"] = DEFAULT_HEARTBEAT_CONFIG.get("target", "none")
heartbeat["target"] = DEFAULT_HEARTBEAT_CONFIG.get("target", "last")
agent.heartbeat_config = heartbeat
agent.updated_at = utcnow()