status: show slot owner (reserving pid / lease name) #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
tatami statusshould show the owner identity of a reserved slot: the reserving pid for in-use slots, and the lease name for leased slots.Current behavior
🔒 held by: {lease_holder}(src/cmd/status.rs:46).⚙️ processes: ...), not theowner_pid/owner_started_atreservation that actually holds the slot.SlotView(src/pool.rs:28) does not exposeowner_pidat all, so the reserving pid is unavailable tostatuseven though it is tracked inSlotEntry.Gap
The two reservation kinds are asymmetric in the UI:
statuslease_holder)owner_pid,owner_started_at)For an in-use slot you can see what is running but not who reserved it. The owning pid may not even appear among
processesif it forked and exited or lives outside the slot's process tree.Proposed change
owner_pid(and possiblyowner_started_at) toSlotView.status, print the owner for in-use slots, e.g.👤 owner: pid {owner_pid}, alongside the existingheld byline for leases.--json) output gets the field for free once it is onSlotView.Opened a PR: #3