Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/check_ladder_cells_producer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ reap_work() {
rm -rf "${WORK:?}"
}
trap reap_work EXIT
# EXIT does not run on SIGKILL (a cancelled or timed-out job): a detached watcher repeats the sweep once this shell is gone
# (8 fake serves leaked on lambda, 2026-10-21). The dir is removed by the same name, never by a pattern.
setsid bash -c 'while kill -0 "$1" 2>/dev/null; do sleep 2; done
for p in /proc/[0-9]*; do c=$(tr "\0" " " 2>/dev/null < "$p/cmdline") || continue; case "$c" in *"$2/"*) kill -TERM "${p#/proc/}" 2>/dev/null ;; esac; done
rm -rf -- "${2:?}"' _ "$$" "$WORK" < /dev/null > /dev/null 2>&1 &
FAKE="$ROOT/scripts/lib/model_ladder_cells_produce_cases/fake_apr.py"

cat > "$WORK/ladder.yaml" <<'EOF'
Expand Down
Loading