Skip to main content

Module agent_history_reclaim

Module agent_history_reclaim 

Source
Expand description

App history_reclaim (GET/POST /api/v1/agent/history/reclaim): a host or container agent asks for the shared pane-history store’s free space to be given back at the next start, withdraws that request, or reads where it stands. The window does the same with history.reclaim (History > Storage); nothing in the request touches the host’s files from the agent’s side: srv writes the one marker beside its own store.

The request is recorded as the calling agent (the marker’s requested_by is its slug, and the HTTP layer records the call under its token, never as the operator). It runs only at an srv start, so the operator sees it pending in Storage and can cancel it there. Asking again keeps the first request.

Structs§

ReclaimRequest 🔒
Refusal 🔒

Functions§

caller_slug 🔒
The slug of the agent the request’s token names.
change 🔒
Request, cancel or read the reclaim of the store at db, as by.
handle_history_reclaim 🔒
POST /api/v1/agent/history/reclaim: { "action": "request" | "cancel" }.
handle_history_reclaim_status 🔒
GET /api/v1/agent/history/reclaim: where the request and the last reclaim stand; changes nothing.
refuse 🔒
respond 🔒
run_for 🔒
The same request, cancel or read as the route, for a caller that is not on this machine (app.history_reclaim): by is the actor the marker and the log name. action is request, cancel or status.
status_of 🔒
The request and last result, as the answer says them.
store_db 🔒
The shared store’s database file.