Remove obsolete renumber and stale commands, fix test
- Remove renumber.go: Hash IDs eliminated need for ID compaction - Remove stale.go: Executor/heartbeat tables were never implemented - Fix TestListCommand: duplicate dependency constraint violation - Update comments removing references to removed commands Amp-Thread-ID: https://ampcode.com/threads/T-3dcd8681-c7d3-4fe1-9750-b38279b56cdb Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
---
|
||||
description: Show orphaned claims and dead executors
|
||||
argument-hint: [--release] [--threshold]
|
||||
---
|
||||
|
||||
Show issues stuck in_progress with execution_state where the executor is dead or stopped.
|
||||
|
||||
Helps identify orphaned work that needs manual recovery.
|
||||
|
||||
## Stale Detection
|
||||
|
||||
An issue is stale if:
|
||||
- It has an execution_state (claimed by an executor)
|
||||
- AND the executor status is 'stopped'
|
||||
- OR the executor's last_heartbeat is older than threshold
|
||||
|
||||
Default threshold: 300 seconds (5 minutes)
|
||||
|
||||
## Usage
|
||||
|
||||
- **List stale issues**: `bd stale`
|
||||
- **Custom threshold**: `bd stale --threshold 600` (10 minutes)
|
||||
- **Auto-release**: `bd stale --release` (automatically release all stale issues)
|
||||
|
||||
Useful for parallel execution systems where workers may crash or get stopped.
|
||||
Reference in New Issue
Block a user