Skip to content

Reclaim landing locks left by a process that exited (knit) - #269

Merged
marc-merino merged 2 commits into
mainfrom
knit/reclaim-landing-locks-left-by-a-process-that-exited
Nov 7, 2026
Merged

marc-merino merged 2 commits into
mainfrom
knit/reclaim-landing-locks-left-by-a-process-that-exited

Conversation

@marc-merino

@marc-merino marc-merino commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Knit Bundle

View bundle

This PR is part of Knit bundle reclaim-landing-locks-left-by-a-process-that-exited.

See the other review objects in this bundle:

Bundle id: reclaim-landing-locks-left-by-a-process-that-exited
Bundle title: Reclaim landing locks left by a process that exited

A landing killed before it returned (SIGKILL, a closed terminal) left one
lock file per landing resource, holding only its PID. Every later apply and
resume stopped at the first of them, and the only way on was to remove the
files by hand.

Each lock now names an owner record that lists every step process group the
owner started. When the owner has exited and none of those groups is still
running, apply and resume take the lock over and say so. A lock that cannot
be verified (an earlier release's bare PID, or a crash while starting a step)
still blocks, and the error names `knit land unlock --confirm-quiescent`,
which releases all of them in one go once the operator has checked. A lock
held by a running process is never released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Knit-Group: kg_20261107_ab2e23
Knit-Bundle: reclaim-landing-locks-left-by-a-process-that-exited
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Knit-Group: kg_20261107_9a1a17
Knit-Bundle: reclaim-landing-locks-left-by-a-process-that-exited
@marc-merino
marc-merino merged commit 6cf5f37 into main Nov 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant