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: packer/linux/conf/buildkite-agent/scripts/terminate-instance
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ if [[ $BUILDKITE_TERMINATE_INSTANCE_AFTER_JOB == "true" ]]; then
23
23
#
24
24
# We need to do this because if the call to terminate fails, the systemd unit will start up a new buildkite-agent process
25
25
# on this machine, with state left over from the last agent, which is the opposite of what we want when $BUILDKITE_TERMINATE_INSTANCE_AFTER_JOB is true.
26
-
terminate "$region""$instance_id"|| shutdown
26
+
terminate "$region""$instance_id"|| shutdown now
27
27
else
28
28
# If we're not in terminate-after-job mode, then it's fine for this to fail, as it'll be as if the instance never got shut down.
0 commit comments