Skip to main content

Module lock_file

Module lock_file 

Source
Expand description

Canonical running.lock reader + 3-state agent status classifier.

Used by:

  • mur agent list/status (CLI) — see mur-core/src/cmd/agent.rs
  • /api/v1/agents/* (HTTP) — see mur-core/src/server_agents/
  • mur-agent-runtime supervisor — see mur-agent-runtime/src/lock_file.rs (the runtime additionally uses flock; that check stays local)

Structs§

AgentStatus
Result of classifying an agent’s lock state.

Enums§

AgentStatusKind
Three-state classification of an agent’s runtime state.

Functions§

classify
Classify the agent’s running state by inspecting <home>/running.lock.
pid_alive
Is the given pid currently a live process the calling user can signal?
read
Read and JSON-parse <home>/running.lock. Returns: