Skip to content

Commit bcbdbb5

Browse files
fix: improve curl error handling in fetch_current_fom [code:qws] [system:RC_GH200]
1 parent 7f065a7 commit bcbdbb5

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

programs/qws/list.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ system,mode,queue_group,nodes,numproc_node,nthreads,elapse
33
#FugakuLN,native,small,1,1,1,0:10:00
44
#FugakuCN,native,small,1,4,12,0:10:00
55
#FugakuCN,native,small,2,4,12,0:10:00
6-
RC_GH200,native,dummy,1,1,12,0:10:00
6+
RC_GH200,native,dummy,1,1,72,0:10:00
77
#RC_DGXS,native,dummy,1,1,20,0:10:00
88
#RC_GENOA,native,dummy,1,1,96,0:10:00
99
#MiyabiG,cross,debug-g,1,1,72,0:10:00

scripts/estimate_common.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,14 @@ fetch_current_fom() {
107107
fi
108108

109109
local response
110+
local curl_exit
111+
set +e
110112
response=$(curl -sf -H "X-API-Key: ${RESULT_SERVER_KEY}" "$url")
111-
if [[ $? -ne 0 || -z "$response" ]]; then
112-
echo "ERROR: Failed to fetch Fugaku result for code=${code}, exp=${exp}" >&2
113+
curl_exit=$?
114+
set -e
115+
if [[ $curl_exit -ne 0 || -z "$response" ]]; then
116+
echo "ERROR: Failed to fetch Fugaku result for code=${code}, exp=${exp} (curl exit=$curl_exit)" >&2
117+
echo "ERROR: URL was: ${url}" >&2
113118
exit 1
114119
fi
115120

0 commit comments

Comments
 (0)