Skip to content

Commit 4185459

Browse files
committed
If we redirect the QC remotes, make sure we also don't use the production QCDB
1 parent a8a4a25 commit 4185459

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DATA/production/qc-workflow.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ if [[ -z $QC_JSON_FROM_OUTSIDE ]]; then
8080

8181
JSON_FILES=
8282
OUTPUT_SUFFIX=
83+
QC_CONFIG=
8384
for i in `echo $LIST_OF_DETECTORS | sed "s/,/ /g"`; do
8485
DET_JSON_FILE="QC_JSON_$i"
8586
if has_detector_qc $i && [ ! -z "${!DET_JSON_FILE}" ]; then
@@ -116,6 +117,7 @@ if [[ -z $QC_JSON_FROM_OUTSIDE ]]; then
116117
if [[ "0$QC_REDIRECT_MERGER_TO_LOCALHOST" == "01" ]]; then
117118
sed -i.bak -E 's/( *)"remoteMachine" *: *".*"(,?) *$/\1"remoteMachine": "127.0.0.1"\2/' $MERGED_JSON_FILENAME
118119
unlink $MERGED_JSON_FILENAME.bak
120+
QC_CONFIG+="--override-values \"qc.config.database.host=ccdb-test.cern.ch:8080\""
119121
fi
120122
QC_JSON_FROM_OUTSIDE="$MERGED_JSON_FILENAME"
121123
fi
@@ -124,7 +126,7 @@ if [[ -z $QC_JSON_FROM_OUTSIDE ]]; then
124126
fi
125127

126128
if [[ ! -z "$QC_JSON_FROM_OUTSIDE" ]]; then
127-
add_W o2-qc "--config json://$QC_JSON_FROM_OUTSIDE ${QC_CONFIG_PARAM:---local --host ${QC_HOST:-localhost}}" "" 0
129+
add_W o2-qc "--config json://$QC_JSON_FROM_OUTSIDE ${QC_CONFIG_PARAM:---local --host ${QC_HOST:-localhost}} ${QC_CONFIG}" "" 0
128130
fi
129131

130132
true # everything OK up to this point, so the script should return 0 (it is !=0 if the last check failed)

0 commit comments

Comments
 (0)