重构为直接 OpenSandbox 生命周期调度 #24

Merged
panxiao81 merged 3 commits from refactor/direct-opensandbox-scheduler into main 2026-09-18 18:19:38 +00:00
Showing only changes of commit f756a83013 - Show all commits
+1 -4
View File
@@ -7,10 +7,7 @@ set -euo pipefail
socket_path=${SPIFFE_ENDPOINT_SOCKET#unix://}
token_file=$(mktemp)
cleanup() {
rm -f -- "$token_file"
}
trap cleanup EXIT
trap 'rm -f -- "$token_file"' EXIT
export GITEA_RUNNER_REGISTRATION_TOKEN_FILE="$token_file"
deadline=$((SECONDS + 120))
while (( SECONDS < deadline )); do