TRACE-VLA code snapshot 2026-11-22 11:47 +07: 456 canonical files + SHA256 manifest + sync report (part 2)
ae1ed83 verified Download code/trace_validation/scripts/df_watchdog.sh from phammminhhieu/trace-vla-code: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/trace_validation/scripts/df_watchdog.sh
- Command line
-
hf download hf://phammminhhieu/trace-vla-code/code/trace_validation/scripts/df_watchdog.sh
-
curl -L -o df_watchdog.sh https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/trace_validation/scripts/df_watchdog.sh
1.09 kB
| # Watchdog (Young's order 00:32, 2026-11-22): if the master | |
| # sequencer dies before the master_done flag exists, relaunch it | |
| # (max 3 relaunches, each logged). Stage-level retries live in | |
| # the master script itself. | |
| LOG=~/sera_v4_experiments/data_factory_watchdog.log | |
| FLAGDIR=~/sera_v4_experiments/data_factory/flags | |
| COUNT_FILE=$FLAGDIR/watchdog_relaunches | |
| mkdir -p "$FLAGDIR" | |
| stamp() { echo "[$(date '+%F %T')] $*" >> "$LOG"; } | |
| stamp "WATCHDOG START" | |
| while [ ! -f "$FLAGDIR/master_done" ]; do | |
| if ! pgrep -f "df_master_seq.sh" > /dev/null; then | |
| n=$(cat "$COUNT_FILE" 2>/dev/null || echo 0) | |
| if [ "$n" -lt 3 ]; then | |
| n=$((n + 1)) | |
| echo $n > "$COUNT_FILE" | |
| stamp "RELAUNCH master attempt $n" | |
| cd ~/sera_v4_experiments/trace_validation/scripts || exit 1 | |
| setsid nohup bash df_master_seq.sh \ | |
| >> ~/sera_v4_experiments/data_factory_master_outer.log \ | |
| 2>&1 < /dev/null & disown | |
| else | |
| stamp "RELAUNCH LIMIT REACHED (3) - no more relaunches" | |
| fi | |
| fi | |
| sleep 120 | |
| done | |
| stamp "WATCHDOG DONE (master_done flag present)" | |