Skip to content
Snippets Groups Projects
Commit ee8f3833 authored by Nathan Bockisch's avatar Nathan Bockisch
Browse files

Merge branch 'fix-mark4-ingestion-script' into '2.8.2-DEVELOPMENT'

Put the CD in the wrong place

See merge request !1441
parents e6785c45 f1b3a4de
No related branches found
No related tags found
2 merge requests!1452Merge 2.8.2 to main,!1441Put the CD in the wrong place
Pipeline #11477 passed
...@@ -43,13 +43,13 @@ queue ...@@ -43,13 +43,13 @@ queue
ingest_mk_four_obs_sh = """#!/bin/sh ingest_mk_four_obs_sh = """#!/bin/sh
set -o errexit set -o errexit
cd $1
# Get NGAS hosts and set up variables to randomly select one # Get NGAS hosts and set up variables to randomly select one
NGASHOSTSTR=$(./pycapo -q archive-ingestion.NGASHosts) NGASHOSTSTR=$(./pycapo -q archive-ingestion.NGASHosts)
NGASHOSTARR=(`/bin/echo ${NGASHOSTSTR}`) # Put the space-delimited host list into an array NGASHOSTARR=(`/bin/echo ${NGASHOSTSTR}`) # Put the space-delimited host list into an array
NGASHOSTLEN=${#NGASHOSTARR[@]} NGASHOSTLEN=${#NGASHOSTARR[@]}
cd $1
for FILE in *; do for FILE in *; do
# Pick random NGAS host to distribute the ingestion load # Pick random NGAS host to distribute the ingestion load
NGASINDEX=$(($RANDOM % $NGASHOSTLEN)) NGASINDEX=$(($RANDOM % $NGASHOSTLEN))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment