Skip to main content

Module jobs_remote_stop

Module jobs_remote_stop 

Source
Expand description

Stopping a Job’s run in another AgentMux on this computer: the sender’s hook and the receiving route (backend/jobs/remote.rs says why and what is written to the run).

A run delivered to an agent in another channel is followed by that channel (RunLedger::follow_forwarded). A timeout or a cancel_other overlap on the firing side asks that channel’s srv, over loopback with the key it lists in the shared registry (the same trust as the inject forward), to close the run and interrupt the agent’s turn, the interrupt a local stop sends. It is not the Stop tool: that closes the agent, and asks its user first.

Structs§

StopRunRequest 🔒

Constants§

ASK_TIMEOUT 🔒
How long the other srv has to answer: it only closes a row and signals a pane.
STOP_RUN_PATH 🔒
The route on the receiving srv.

Functions§

forward 🔒
Deliver stop to the srv that follows its run, and say how it went.
handle_jobs_stop_run 🔒
POST /agentmux/jobs/stop-run: close the run this instance follows and interrupt its pane’s turn. Only a run this process follows in the named pane, that the asking AgentMux fired and asked in its row to stop. The route is on the full-key router only: not LAN-reachable, and not on the container allowlist.
install 🔒
Let ledger ask another channel to stop the runs it follows.
install_with 🔒
install with the lookup of the other srv given: tests point it at one they started.
post_stop 🔒
POST stop to the srv at url, which answers whether it took it.
registry_resolver 🔒
The shared registry’s entry for the pane, on another instance of this computer.

Type Aliases§

Resolve 🔒
Where the AgentMux holding a pane listens, and its key: (url, auth key).