Files
Chris Troutner 053e8e3d33 Self-heal the handoff daemon
Handoffs sit undelivered when handoffd is not running, and recovery was a
manual step. Add ensure_handoff_daemon.sh and call it from swarm_handoff.sh
and ready_for_next.sh so the daemon is restarted whenever it is missing.

By specifier.
2026-09-15 17:40:33 -07:00

11 lines
323 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Recovery: if the handoff daemon died, wake-ups never arrive and queued
# handoffs sit in outboxes. Ensure it is alive before checking for work.
"$SCRIPT_DIR/ensure_handoff_daemon.sh" || true
exec bb "$SCRIPT_DIR/ready_for_next.bb" "$@"