From 4cef0472685612f428edfb044aaa0a3c1f7353fa Mon Sep 17 00:00:00 2001 From: Nathan Bockisch <nbockisc@nrao.edu> Date: Tue, 12 Sep 2023 16:07:53 -0600 Subject: [PATCH] Added copying of mark 4 observations to the WS staging area --- ...090cb7acc4_add_mark4_observation_ingestion_workflow.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shared/workspaces/alembic/versions/08090cb7acc4_add_mark4_observation_ingestion_workflow.py b/shared/workspaces/alembic/versions/08090cb7acc4_add_mark4_observation_ingestion_workflow.py index c9caac7fc..45bde4289 100644 --- a/shared/workspaces/alembic/versions/08090cb7acc4_add_mark4_observation_ingestion_workflow.py +++ b/shared/workspaces/alembic/versions/08090cb7acc4_add_mark4_observation_ingestion_workflow.py @@ -48,7 +48,13 @@ NGASHOSTSTR=$(./pycapo -q archive-ingestion.NGASHosts) NGASHOSTARR=(`/bin/echo ${NGASHOSTSTR}`) # Put the space-delimited host list into an array NGASHOSTLEN=${#NGASHOSTARR[@]} -cd $1 +# Copy from the difx area to the Workspaces staging area +WSSTAGINGDIR=$(./pycapo -q edu.nrao.workspaces.IngestionSettings.vlbiStagingDirectory) +/bin/cp -r $1 $WSSTAGINGDIR + +OBSDIR=$(/bin/basename $1) +/bin/chmod -R 750 $WSSTAGINGDIR/$OBSDIR # Make sure NGAS has permissions to ingest the files +cd $WSSTAGINGDIR/$OBSDIR for FILE in *; do # Pick random NGAS host to distribute the ingestion load -- GitLab