feat(aihr): complete phase two pilot readiness
This commit is contained in:
+5
-3
@@ -2,6 +2,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
source "$ROOT_DIR/scripts/lib/process-tree.sh"
|
||||
PIDS=()
|
||||
|
||||
usage() {
|
||||
@@ -20,7 +21,7 @@ EOF
|
||||
cleanup() {
|
||||
trap - INT TERM EXIT
|
||||
for pid in "${PIDS[@]}"; do
|
||||
kill "$pid" >/dev/null 2>&1 || true
|
||||
stop_process_tree "$pid"
|
||||
done
|
||||
}
|
||||
|
||||
@@ -94,14 +95,15 @@ stop_portless_route() {
|
||||
fi
|
||||
|
||||
echo "Stopping portless route $name: $pids"
|
||||
kill $pids >/dev/null 2>&1 || true
|
||||
for pid in $pids; do
|
||||
stop_process_tree "$pid"
|
||||
done
|
||||
for _ in {1..20}; do
|
||||
if ! portless list 2>/dev/null | grep -q "https://${name}[.]localhost"; then
|
||||
return
|
||||
fi
|
||||
sleep 0.2
|
||||
done
|
||||
kill -9 $pids >/dev/null 2>&1 || true
|
||||
}
|
||||
|
||||
stop_launchctl_job() {
|
||||
|
||||
Reference in New Issue
Block a user