Dashboardopencode-loreEmbedding cancellation execution owners…

Embedding cancellation execution ownership

Category: gotcha
Confidence: 1.00
ID: 01a0a58e-af21-76f9-8ff9-0c6f91d42a31
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 14qjeFAXJ9DyU5IlY
Created: 2026-09-15 12:00:24
Updated: 2026-09-15 14:53:06

Content

Trap: caller timeout or cancellation looks like permission to free a pool slot or retire the worker because the promise has settled. Fix: reject before admission, remove host-queued work so it never reaches inference, but keep executing work charged until completion or confirmed worker exit; caller settlement and execution ownership are separate. Use independent initialization/execution watchdogs, and never let a short request deadline restart a healthy worker or duplicate durable work.

Move to: