Skip to content

Commit 2db1018

Browse files
mwalker174lbergelson
authored andcommitted
Dramatic dead turtle (#44)
1 parent c74e81c commit 2db1018

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

cromshell

+12-2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ function turtle()
7474
error " \"\" \"\" \"\" "
7575
}
7676

77+
function turtleDead()
78+
{
79+
error " ,, ,, ,, "
80+
error " \\\\,-/‾/====/‾/, "
81+
error " \\/=<‾><‾><‾><‾>-, "
82+
error " / (\\\\‾|‾/‾/‾/‾ "
83+
error " \\‾x/ ˙'-;-;-'˙ "
84+
error " ‾‾ "
85+
}
86+
7787
function thoughtBubble()
7888
{
7989

@@ -327,12 +337,12 @@ function status()
327337
curl --connect-timeout $CURL_CONNECT_TIMEOUT -s ${2}/api/workflows/v1/${1}/status > $f
328338
[[ $? -ne 0 ]] && error "Could not connect to Cromwell server." && return 2
329339

330-
grep -qE '"Failed"|"Aborted"' $f
340+
grep -qE '"Failed"|"Aborted"|"fail"' $f
331341
r=$?
332342
[[ $r -eq 0 ]] && retVal=1
333343

334344
if [[ $retVal -eq 1 ]]; then
335-
turtle "dead"
345+
turtleDead
336346
else
337347
turtle
338348
fi

0 commit comments

Comments
 (0)