b4fbd6fe9f
Deploy Site / deploy-vercel (push) Has been skipped
Deploy Site / deploy-docs (push) Has been skipped
Build Skills Index / build-index (push) Has been skipped
Build Skills Index / trigger-deploy (push) Waiting to run
CI / Deny unrelated histories (push) Has been skipped
CI / CI timing report (push) Blocked by required conditions
CI / Detect affected areas (push) Successful in 27m35s
CI / OSV scan (push) Failing after 4s
CI / Build&Test Docker image (push) Successful in 9s
CI / Supply-chain scan (push) Has been skipped
CI / Lint Docker scripts (push) Failing after 5m13s
CI / Check contributors (push) Failing after 12m8s
CI / Docs Site (push) Failing after 12m8s
CI / TypeScript (push) Failing after 12m8s
CI / Python lints (push) Failing after 12m9s
CI / Python tests (push) Failing after 12m9s
CI / Check uv.lock (push) Failing after 23m22s
CI / All required checks pass (push) Waiting to run
35 lines
1.0 KiB
Bash
Executable File
35 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# Kill all running Modal apps (sandboxes, deployments, etc.)
|
|
#
|
|
# Usage:
|
|
# bash scripts/kill_modal.sh # Stop hermes-agent sandboxes
|
|
# bash scripts/kill_modal.sh --all # Stop ALL Modal apps
|
|
|
|
set -uo pipefail
|
|
|
|
echo "Fetching Modal app list..."
|
|
APP_LIST=$(modal app list 2>/dev/null)
|
|
|
|
if [[ "${1:-}" == "--all" ]]; then
|
|
echo "Stopping ALL Modal apps..."
|
|
echo "$APP_LIST" | grep -oE 'ap-[A-Za-z0-9]+' | sort -u | while read app_id; do
|
|
echo " Stopping $app_id"
|
|
modal app stop "$app_id" 2>/dev/null || true
|
|
done
|
|
else
|
|
echo "Stopping hermes-agent sandboxes..."
|
|
APPS=$(echo "$APP_LIST" | grep 'hermes-agent' | grep -oE 'ap-[A-Za-z0-9]+' || true)
|
|
if [[ -z "$APPS" ]]; then
|
|
echo " No hermes-agent apps found."
|
|
else
|
|
echo "$APPS" | while read app_id; do
|
|
echo " Stopping $app_id"
|
|
modal app stop "$app_id" 2>/dev/null || true
|
|
done
|
|
fi
|
|
fi
|
|
|
|
echo ""
|
|
echo "Current hermes-agent status:"
|
|
modal app list 2>/dev/null | grep -E 'State|hermes-agent' || echo " (none)"
|