fix: check runner health before reuse

This commit is contained in:
2026-09-11 09:19:03 +00:00
parent 37bd69e90e
commit 069b18daa3
3 changed files with 89 additions and 8 deletions
+2 -2
View File
@@ -98,8 +98,8 @@ gcr_now_epoch() {
date -u '+%s'
}
# Successful VMs remain reusable until next billing-hour boundary, but never
# beyond profile hard TTL. Prints updated idle record when retention is safe.
# Healthy bootstrapped VMs remain reusable until next billing-hour boundary,
# but never beyond profile hard TTL. Prints updated idle record when safe.
gcr_record_idle_json() {
gcr_idle_rec="$1"
[ "$(gcr_record_field "$gcr_idle_rec" bootstrapped)" = "true" ] || return 1