Files
psf-memo/swarmforge/scripts/swarm_handoff.sh
T
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
326 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Handoffs sit undelivered if the daemon is not running, so make sure it is
# alive before queueing. Starting it here is idempotent and self-healing.
"$SCRIPT_DIR/ensure_handoff_daemon.sh" || true
exec bb "$SCRIPT_DIR/swarm_handoff.bb" "$@"