Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DATA/common/gen_topo_helper_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ add_W() # Add binarry to workflow command USAGE: add_W [BINARY] [COMMAND_LINE_OP
WORKFLOW+=$WFADD
}

if [[ ${EPNSYNCMODE:-0} == 1 && "${WORKFLOW_PARAMETERS:-}" =~ (^|,)"QC"(,|$) ]]; then
if [[ ${EPNSYNCMODE:-0} == 1 ]]; then
if [[ "${GEN_TOPO_DEPLOYMENT_TYPE:-}" == "ALICE_STAGING" ]]; then
GEN_TOPO_QC_CONSUL_SERVER=ali-staging.cern.ch
else
Expand All @@ -277,7 +277,7 @@ add_QC_from_consul()
if [[ ! -z ${GEN_TOPO_QC_JSON_FILE:-} ]]; then
curl -s -o $GEN_TOPO_QC_JSON_FILE "http://${GEN_TOPO_QC_CONSUL_SERVER}:8500/v1/kv${1}?raw"
if [[ $? != 0 ]]; then
echo "Error fetching QC JSON $1"
echo "Error fetching QC JSON $1 (1)" 1>&2
exit 1
fi
QC_CONFIG_ARG="json://${GEN_TOPO_QC_JSON_FILE}"
Expand All @@ -297,7 +297,7 @@ add_QC_from_apricot()
curl -s -o $GEN_TOPO_QC_JSON_FILE "${GEN_TOPO_QC_APRICOT_SERVER}/${1}?process=true"
fi
if [[ $? != 0 ]]; then
echo "Error fetching QC JSON $1"
echo "Error fetching QC JSON $1 (2)" 1>&2
exit 1
fi
QC_CONFIG_ARG="json://${GEN_TOPO_QC_JSON_FILE}"
Expand Down
10 changes: 5 additions & 5 deletions DATA/production/qc-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ add_QC_JSON() {
TMP_FILENAME=$FETCHTMPDIR/$1.$RANDOM.$RANDOM.json
curl -s -o $TMP_FILENAME "http://${GEN_TOPO_QC_CONSUL_SERVER}:8500/v1/kv/${2/consul:\/\//}?raw"
if [[ $? != 0 ]]; then
echo "Error fetching QC JSON $2" 1>&2
echo "Error fetching QC JSON $2 (3)" 1>&2
exit 1
fi
elif [[ ${2} =~ ^apricot://.* ]]; then
Expand All @@ -35,9 +35,9 @@ add_QC_JSON() {
else
curl -s -o $TMP_FILENAME "${GEN_TOPO_QC_APRICOT_SERVER}/${2/apricot:\/\/o2\//}?run_type=${RUNTYPE:-}\&beam_type=${BEAMTYPE:-}\&process=true"
fi

if [[ $? != 0 ]]; then
echo "Error fetching QC JSON $2" 1>&2
echo "Error fetching QC JSON $2 (4)" 1>&2
exit 1
fi
else
Expand Down Expand Up @@ -198,7 +198,7 @@ elif [[ -z ${QC_JSON_FROM_OUTSIDE:-} ]]; then
else
QC_JSON_ZDC=$O2DPG_ROOT/DATA/production/qc-async/zdc.json
fi
fi
fi
if [[ -z "${QC_JSON_EMC:-}" ]]; then
if [[ "$BEAMTYPE" == "PbPb" ]]; then
QC_JSON_EMC=$O2DPG_ROOT/DATA/production/qc-async/emc_PbPb.json
Expand Down Expand Up @@ -272,7 +272,7 @@ elif [[ -z ${QC_JSON_FROM_OUTSIDE:-} ]]; then
if [[ $i == "PRIMVTX" ]] && ! has_detector_reco ITS; then continue; fi
if [[ $i == "ITSTPC" ]] && ! has_detectors_reco ITS TPC; then continue; fi
add_QC_JSON GLO_$i ${!DET_JSON_FILE}

if [[ $i == "ITSTPC" ]]; then
LOCAL_FILENAME=${JSON_FILES//*\ /}
# replace the input sources depending on the detector compostition and matching detectors
Expand Down