Skip to content
Snippets Groups Projects
Commit ff3c5146 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Shorten aws status check

parent 8a2f76ab
Branches
Tags
1 merge request!81Develop
Pipeline #9721 passed with warnings with stages
in 52 seconds
......@@ -1102,10 +1102,12 @@ aws:
id=$(echo ${id}| grep -oP "jobId\K.*" | tr -d '"' | tr -d ":" | tr -d " " | tr -d "}")
- >
status=$(aws batch describe-jobs --jobs ${id} | grep -oP "status\": \K.*" | tr -d '"' | tr -d ',' | tr -d " " ) &&
until [[ "${status}" == "SUCCEEDED" || "${status}" == "FAILED" ]]; do
until [[ "${status}" == "SUCCEEDED" ] || [ "${status}" == "FAILED" ]]; do
status=$(aws batch describe-jobs --jobs ${id} | grep -oP "status\": \K.*" | tr -d '"' | tr -d ',' | tr -d " " ) &&
echo ${status} &&
sleep 5m
if [[ "${status}" != "SUCCEEDED" && "${status}" != "FAILED" ]]; then
sleep 1m
fi
done
- >
if [ "${status}" == "SUCCEEDED" ]; then
......
......@@ -106,22 +106,6 @@ process {
}
}
trace {
enabled = false
file = 'trace.txt'
fields = 'task_id,native_id,process,name,status,exit,submit,start,complete,duration,realtime,%cpu,%mem,rss'
}
timeline {
enabled = false
file = 'timeline.html'
}
report {
enabled = false
file = 'report.html'
}
tower {
accessToken = '3ade8f325d4855434b49aa387421a44c63e3360f'
enabled = true
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment