system, adjust finish script to sleep on success too, just for a shorter time.

This commit is contained in:
me
2026-10-17 08:19:46 -07:00
parent 90ecb842d3
commit 1746d7f11a
+7 -3
View File
@@ -21,10 +21,14 @@
# $1 is the exit code, $2 is the exit status byte (signal number if killed)
echo "FINISH: Service returned with exit code: $1 and status: $2"
sleep=30
sleep_long=30
sleep_short=5
if [[ "$1" != 0 ]]; then
echo "FINISH: Sleeping for $sleep seconds due to error..."
sleep $sleep
echo "FINISH: Sleeping for $sleep_long seconds due to error..."
sleep $sleep_long
else
echo "FINISH: Sleeping for $sleep_short seconds."
sleep $sleep_short
fi
- name: General | Facts | System | Global 02