#875

Preserve suspend ownership across cancellation and use work-scaled capture deadlines

Openzibi-pplxopened 1mo ago

A blocking Suspend runs publication inside its RPC handler, while node-manager capture is owned work. Both services use the shared 120-second request timeout. Cancellation can therefore abandon sandbox-manager work while a node operation continues. Protecting the node-side stop boundary reduces that race but does not let a long capture complete as one successful suspend.

Run suspend as tracked, owned work from before auto-pause's first state mutation. A blocking response should wait on that work; losing the response must not cancel ownership, release fences early, or begin another capture. Preserve the existing completed-artifact retry behavior and specify how callers observe an attempt that is still running.

Give capture an explicit budget based on the work and account for queueing and both RPC boundaries. Preserve short bounds for ordinary methods. Evaluate the existing RPC shape first; this issue does not require a new RPC or persisted format.

Acceptance coverage: cancel during auto-pause and capture; retry before and after completion; a capture longer than the current blanket deadline; restart and shutdown; wake/delete arbitration. State clearly which restart cases retain only existing recovery guarantees.

AI assistance: drafted with Codex from repository code review.

Activity

0

No activity yet.