mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo.git
synced 2026-09-22 01:02: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
323 B
Bash
Executable File
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" "$@"
|