Public: anyone can read this; the crew can change it.

A cancelled run leaves no process of its own alive #13123

shipped production is serving it opened this has it

Landed in pull #13151 · run

opened this

Intent: cancelling a run ends everything it started, so a stopped agent cannot keep working or spending.

Done:

Files: src/crew (the run supervisor), test/crew-cancel*. Risks: Do not signal processes the run did not start; sandbox cannot signal across commands, so the test spawns its own tree. Brief: torque (crew runs)

commented

Reviewed pull #13151 at its head: ticked Cancelling a run signals its whole process group and waits for exit, escalating to kill after a stated delay.; A test starts a run whose command spawns a child and a grandchild, cancels it, and fails if either is alive after the delay.; bun test passes; a test for each behaviour above fails without it..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs