bd help --docs-root now additionally writes docs/cli-reference/ in Mintlify form (frontmatter title as H1, extensionless root-relative links, JSX auto-generated markers since Mintlify parses .md through MDX) and rewrites the CLI Reference pages array inside docs/docs.json via a textual splice that leaves the rest of the file byte-identical — the ~113 nav entries are never hand-maintained. The Docusaurus outputs (docs/CLI_REFERENCE.md, website/docs/cli-reference/, versioned snapshots) are unchanged. generate-cli-docs.sh --check seeds docs/docs.json and docs/cli-reference/ into its scratch root and diffs both; check-cli-docs-drift.sh adds them to GEN_PATHSPECS and the regeneration fingerprint; docs-autofix-push.sh allowlists the new generated paths; check-doc-flags.sh scans the new docs/ subdirectories and requires command coverage in docs/cli-reference/. Includes the initial docs/docs.json scaffold (nav mirrors the Docusaurus sidebar IA) and the generated docs/cli-reference/ pages. TDD: new emitter behavior covered in cmd/bd/help_all_test.go (Mintlify page format, nav splice correctness + idempotence, bare-root generation without docs.json).
1.4 KiB
| title | description |
|---|---|
| bd reclaim | Revert stale-lease in_progress issues back to ready (dead-worker recovery) |
{/* AUTO-GENERATED: do not edit manually */}
Generated from bd help --doc reclaim.
Revert in_progress issues whose lease has gone stale back to ready.
When a worker claims an issue it takes a lease that expires after a TTL, kept alive by 'bd heartbeat'. A worker that dies stops heartbeating, so its lease expires and its issue would otherwise stay in_progress forever. reclaim is the reaper: it finds in_progress issues whose lease expired more than --older-than ago, clears the assignee, and sets them back to open so another worker can claim them. The previous owner's stale lease is recorded as a recovery event.
--older-than is a grace window past lease expiry: only leases that expired at least this long ago are reclaimed, so a worker briefly paused (GC, clock skew) is not robbed of live work. Run it from a supervisor on a timer with a window of roughly 2× the claim TTL.
Examples: bd reclaim # default grace window (2× the lease TTL) bd reclaim --older-than 10m # reclaim leases expired >10m ago bd reclaim --older-than 0s # reclaim every currently-expired lease
bd reclaim [flags]
Flags:
--older-than duration Only reclaim leases that expired at least this long ago (grace window) (default 10m0s)