Skip to content

Commit bae672c

Browse files
maleadtstaticfloat
authored andcommitted
macOS: Sleep after reboot.
1 parent 90acd6b commit bae672c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

macos-seatbelt/common.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ function generate_launchctl_script(io::IO, brg::BuildkiteRunnerGroup;
221221
222222
if ((ts_now - ts_boot > 24*60*60)); then
223223
sudo -n /sbin/shutdown -r now
224+
225+
# Give the system the time to shut down,
226+
# preventing a new job from getting picked up
227+
sleep 30
224228
fi
225229
""")
226230
end

0 commit comments

Comments
 (0)