You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ec2_gha/templates/user-script.sh.templ
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,8 @@ source $$B/runner-common.sh
69
69
logger "EC2-GHA: Starting userdata script"
70
70
trap'logger "EC2-GHA: Script failed at line $$LINENO with exit code $$?"' ERR
71
71
trap'terminate_instance "Setup script failed with error on line $$LINENO"' ERR
72
+
# Handle watchdog termination signal
73
+
trap'if [ -f $$V-watchdog-terminate ]; then terminate_instance "No runners registered within timeout"; else terminate_instance "Script terminated"; fi' TERM
72
74
73
75
# Set up registration timeout failsafe - terminate if runner doesn't register in time
0 commit comments