File tree 1 file changed +3
-3
lines changed
guidebooks/ml/ray/run/logs
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,16 @@ if [ -n "${STREAMCONSUMER_LOGS}" ]; then
36
36
echo " TODO" 1>&2
37
37
else
38
38
jobstatus=" $( curl -s ${RAY_ADDRESS} /api/jobs/${JOB_ID} | jq -r .status) "
39
- if [[ " SUCCEEDED" != $jobstatus ]] && [[ " ERROR " != $jobstatus ]]; then
39
+ if [[ " SUCCEEDED" != $jobstatus ]] && [[ " FAILED " != $jobstatus ]]; then
40
40
echo " Waiting (again) for ray job to finish: ${JOB_ID} $jobstatus " 1>&2
41
41
websocat --text --exit-on-eof --no-line ${WS_ADDRESS} /api/jobs/${JOB_ID} /logs/tail $WEBSOCAT_OPTS > /dev/null
42
42
jobstatus=" $( curl -s ${RAY_ADDRESS} /api/jobs/${JOB_ID} | jq -r .status) "
43
- if [[ " SUCCEEDED" != $jobstatus ]] && [[ " ERROR " != $jobstatus ]]; then
43
+ if [[ " SUCCEEDED" != $jobstatus ]] && [[ " FAILED " != $jobstatus ]]; then
44
44
echo " Polling for ray job to finish: ${JOB_ID} $jobstatus " 1>&2
45
45
while true ; do
46
46
sleep 1
47
47
jobstatus=" $( curl -s ${RAY_ADDRESS} /api/jobs/${JOB_ID} | jq -r .status) "
48
- if [[ " SUCCEEDED" = $jobstatus ]] || [[ " ERROR " = $jobstatus ]]; then
48
+ if [[ " SUCCEEDED" = $jobstatus ]] || [[ " FAILED " = $jobstatus ]]; then
49
49
break
50
50
fi
51
51
done
You can’t perform that action at this time.
0 commit comments