set_status: add status_set_at timestamp (mtime of status file)
This commit is contained in:
parent
fe2933b213
commit
8e8e8a771f
7 changed files with 75 additions and 14 deletions
|
|
@ -221,12 +221,13 @@ async fn dispatch(req: &AgentRequest, agent: &str, coord: &Arc<Coordinator>) ->
|
|||
}
|
||||
}
|
||||
AgentRequest::Whoami => {
|
||||
let status_text = crate::container_view::read_agent_status_text(agent);
|
||||
let (status_text, status_set_at) = crate::container_view::read_agent_status(agent);
|
||||
AgentResponse::Whoami {
|
||||
name: agent.to_owned(),
|
||||
role: "agent".to_owned(),
|
||||
hyperhive_rev: crate::auto_update::current_flake_rev(&coord.hyperhive_flake),
|
||||
status_text,
|
||||
status_set_at,
|
||||
}
|
||||
}
|
||||
AgentRequest::SetStatus { text } => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue