From 20600a81760997cc7a53293dbe0f92499a96338c Mon Sep 17 00:00:00 2001 From: Jesse Rusak Date: Tue, 8 Apr 2025 09:37:15 -0400 Subject: [PATCH 1/2] shutdown timeout on error for debugging --- action.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/action.sh b/action.sh index c417931..0e1ae43 100755 --- a/action.sh +++ b/action.sh @@ -207,6 +207,7 @@ function start_vm { set -e shutdown() { echo ❌ Machine setup failed so deleting $VM_ID in ${machine_zone} ... + sleep ${shutdown_timeout} ${shutdown_command} } trap shutdown ERR From 6fa4b11a05e0349684301cc5f9f569a46a13821e Mon Sep 17 00:00:00 2001 From: Jesse Rusak Date: Wed, 9 Apr 2025 08:58:15 -0400 Subject: [PATCH 2/2] Add timeout to log message --- action.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.sh b/action.sh index 0e1ae43..faf468b 100755 --- a/action.sh +++ b/action.sh @@ -206,7 +206,7 @@ function start_vm { startup_prelude="#!/bin/bash set -e shutdown() { - echo ❌ Machine setup failed so deleting $VM_ID in ${machine_zone} ... + echo ❌ Machine setup failed so deleting $VM_ID in ${machine_zone} in ${shutdown_timeout} seconds ... sleep ${shutdown_timeout} ${shutdown_command} }