Skip to content

Commit 1a818ac

Browse files
authored
Shutdown timeout on error for debugging (#61)
1 parent b1ab20c commit 1a818ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ function start_vm {
206206
startup_prelude="#!/bin/bash
207207
set -e
208208
shutdown() {
209-
echo ❌ Machine setup failed so deleting $VM_ID in ${machine_zone} ...
209+
echo ❌ Machine setup failed so deleting $VM_ID in ${machine_zone} in ${shutdown_timeout} seconds ...
210+
sleep ${shutdown_timeout}
210211
${shutdown_command}
211212
}
212213
trap shutdown ERR

0 commit comments

Comments
 (0)