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>
Implements #34 - Job Limits Per Load Level
Jobs are now classified into HIGH, MEDIUM, or LOW load levels based on
gitignore-style whitelist files (.load files). This allows concurrent
execution of different types of jobs (e.g., downloading while transcoding).
Changes:
- Add LoadLevel enum with default limits (HIGH=2, MEDIUM=8, LOW=32)
- Add LoadLevelConfig record for per-level max jobs configuration
- Add CommandMatcher sealed interface for matching commands by name/path/dir
- Add LoadFileParser for parsing .load whitelist files
- Add LoadLevelClassifier for auto-classifying commands
- Add ConfigInstallCommand (barn config install) for default config files
- Update JobScheduler to use per-level limits with EnumMap
- Add --load-level/-l option to barn run for manual override
- Add load level display to barn status and barn describe output
- Remove --user flag from service install/uninstall (system-wide only)
- Update documentation for load levels and whitelist files
Default whitelists:
- high.load: ffmpeg, ffprobe, handbrake, x264, x265, etc.
- low.load: curl, wget, rclone, rsync, aria2c, etc.
- medium.load: empty (unmatched commands default to MEDIUM)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Shows full JSON output for running, succeeded, and failed states.
All examples now include logs for complete programmatic workflow.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove shell-specific commands (tail, watch, grep) in favor of
barn describe --logs for cross-platform compatibility.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Shows complete process: submit job, poll status, get progress,
handle completion. Includes example bash script.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Machine-readable progress output to stdout makes parsing easier
and follows the pattern users expect.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Explains FFmpeg's stdout/stderr behavior (progress goes to stderr by design),
exit codes, recommended flags, and monitoring patterns.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Replace SLF4J/logback with custom BarnLogger across all source files
- BarnLogger is disabled by default for CLI commands, enabled for service
- Fixes#30: debug logs no longer break JSON/XML CLI output
- Add SpotBugs exclusions for BarnLogger false positives
- Update docs: remove .deb and AUR references (no longer applicable)
- Update docs: add Windows setup.exe installation instructions
- Update docs: clarify auto-update only works with Homebrew
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updates documentation to reflect the actual Maven-based build:
- pom.xml instead of gradle.properties for version
- mvn commands instead of gradlew
- Updated build workflow examples
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement proper CLI-to-service communication via Unix domain sockets,
fixing issue where CLI commands couldn't see jobs managed by the service.
Key changes:
- Add IPC client/server for CLI-service communication
- Fix directory mismatch (CLI used java.io.tmpdir, service used /tmp/barn)
- Add service management commands (start, stop, restart, reload, logs)
- Add service installation for macOS (launchd), Linux (systemd), Windows
- Add process usage monitoring (barn usage command)
- Add job state breakdown in service status (succeeded, failed, canceled)
- Add output formatters (human, JSON, XML)
- Add crash recovery and heartbeat checking
- Add structured logging with MDC context
The CLI commands now properly communicate with the running service
via IPC, ensuring consistent job state visibility.
Fixes#24
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>