DashboardopencodeUnitRemoved is not cleanup proof

UnitRemoved is not cleanup proof

Category: gotcha
Confidence: 1.00
ID: 01a0802b-e7c6-72e7-87ea-2cb526df2463
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 1
Source session: 0lWzqKvhQ0x7o6ocG
Created: 2026-09-08 07:19:09
Updated: 2026-09-08 08:39:16

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 2 1h ago

Content

Trap: authenticating UnitRemoved looks sufficient because systemd normally owns that signal, but signals remain advisory and can race stale or incomplete state. Fix: never use UnitRemoved as cleanup proof; bounded authoritative queries must establish NoSuchUnit or an empty inactive cgroup before releasing capacity or reporting completion.

Move to: