mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo.git
synced 2026-09-21 16:52:01 -07:00
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.
11 lines
326 B
Bash
Executable File
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" "$@"
|