feat(cli): add retry columns to barn status output

Surface retryCount and retryAt fields in the human table format for
barn status, so retrying jobs are distinguishable from freshly queued
jobs. Also add retryAt to the single job detail view.

- Add RETRIES and NEXT RETRY columns to StatusCommand and HumanFormatter
- Add retryAt display to HumanFormatter single job detail
- Update README and testing-manual docs with new columns
- Add tests for retry display in StatusCommand, HumanFormatter, and XmlFormatter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel SamsonandClaude Opus 4.6 committed 2026-03-03 19:40:43 +00:00
1 parent 14bb82fc9d
commit b53b4a3287
7 files changed
+123 -10

No files matched your search

+4 -2
View File
@@ -209,6 +209,8 @@ There needs to be a barn service in order to run jobs (unless you use --offline)
| `error` | Human-readable failure reason |
| `pid` | OS process ID (best-effort) |
| `heartbeat` | Last liveness update |
| `retryCount` | Current retry attempt (0 if never retried) |
| `retryAt` | Timestamp for next retry attempt (null if not retrying)|
Users can tag jobs for the purpose of filtering using the `--tag=string` CLI option.
@@ -245,8 +247,8 @@ Developers can use the `--offline` command line option to test how the service b
**Example: `barn status`**
```
ID STATE LOAD TAG CREATED EXIT PID
job-6d368040 succeeded medium - 2026-01-22 01:48:46 0 17486
ID STATE LOAD TAG CREATED EXIT PID RETRIES NEXT RETRY
job-6d368040 succeeded medium - 2026-01-22 01:48:46 0 17486 - -
Total: 1 job (1 succeeded)
```