justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 2007, Stage 1

Priority50
Processors1
Wall seconds80000
RSS bytes5767168000 (5500 MiB)
Max distance for inputs30.0
Enabled input RSEs
Enabled output RSEs
Enabled sites
Scopeusertests
Events for this stage

Output patterns

 DestinationPatternLifetimeFor next stage
0Rucio usertests:april_pdhd_dress_rehearsal_reco_4_26_24_test*rerun_reco.root0False

Environment variables

NameValue
DR_DIR

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
55000550000000

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
6209280000618643112283000
Replicas per RSE5500480.49314428763427219.443082921142834873283.7847147799717252.79077525482393414341.28548810915424130.67480302173573136355.88902450273247125.8578396102884116362.7895668644971124.4084684935771963367.7445339954638123.6744813286118858371.11195624281424123.3184981986676750374.1262145980863123.0966670371333435376.50241393833477122.985834248394428378.26493352987325122.9399673362013917379.5242341411644122.92612530160943Replicas per RSEDUNE_US_FNAL_DISK_S…DUNE_US_FNAL_DISK_STAGE (48%)DUNE_CERN_EOS (43%)QMUL (3%)RAL_ECHO (1%)NIKHEF (1%)RAL-PP (0%)DUNE_FR_CCIN2P3_DIS…DUNE_FR_CCIN2P3_DISK (0%)SURFSARA (0%)DUNE_US_BNL_SDCC (0…DUNE_US_BNL_SDCC (0%)PRAGUE (0%)DUNE_ES_PIC (0%)

Stats of processed input files as CSV or JSON, and of uploaded output files as CSV or JSON (up to 10000 files included)

Jobscript

#!/bin/bash
#
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
setup metacat
export METACAT_SERVER_URL=https://metacat.fnal.gov:9443/dune_meta_prod/app
export METACAT_AUTH_SERVER_URL=https://metacat.fnal.gov:8143/auth/dune
##Check?

#First check the existence of this,
#there are sometimes spurrious site issues preventing access
stat ${DR_DIR}/rerun_reco.fcl
if [ $? -ne 0 ]; then
  echo "Failed to stat input list. Exiting safely"
  exit 0
fi

#Setup recent lar software suite
DUNE_VERSION=${DUNE_VERSION:-v09_85_00d00}
setup dunesw \
   "${DUNE_VERSION}" \
   -q "${DUNE_QUALIFIER:-e26:prof}"

if [ $? -ne 0 ]; then
  echo "Failed to setup dunesw $DUNE_VERSION $DUNE_QUALIFIER"
fi

echo "DUNESW loc:"
ups active | grep dunesw

if [ -z ${JUSTIN_PROCESSORS} ]; then
  JUSTIN_PROCESSORS=1
fi

echo "Justin processors: ${JUSTIN_PROCESSORS}"

export TF_NUM_THREADS=${JUSTIN_PROCESSORS}   
export OPENBLAS_NUM_THREADS=${JUSTIN_PROCESSORS} 
export JULIA_NUM_THREADS=${JUSTIN_PROCESSORS} 
export MKL_NUM_THREADS=${JUSTIN_PROCESSORS} 
export NUMEXPR_NUM_THREADS=${JUSTIN_PROCESSORS} 
export OMP_NUM_THREADS=${JUSTIN_PROCESSORS}  

echo "printing env"
env

echo "Will use justin-get-file"
#
DID_PFN_RSE=`$JUSTIN_PATH/justin-get-file`
##Check that any file was returned
if [ "${DID_PFN_RSE}" == "" ] ; then
  echo "Could not get file"
  exit 0
fi


pfn=`echo ${DID_PFN_RSE} | cut -f2 -d' '`
did=`echo ${DID_PFN_RSE} | cut -f1 -d' '`
echo "pfn: ${pfn}"
now=$(date -u +"%Y%m%dT%H%M%SZ")
filename=`echo $did | cut -f2 -d ':' | sed -e "s/.root/_${now}_rerun_reco.root/"`


nevents=${NEVENTS:--1}

echo "Running reco"
touch reco.log
starttime=`date +"%s"`.0
lar -c ${DR_DIR}/rerun_reco.fcl \
    -n ${nevents} \
    -o ${filename} \
    ${pfn} # >reco.log 2>&1
larExit=$?
endtime=`date +"%s"`.0

if [ $larExit -ne 0 ]; then
  echo "Error in reco"
  cat reco.log
  exit $larExit
fi

echo "Ran successfully"

echo "Forming metadata"

python ${DR_DIR}/dress_rehearsal_meta_writer.py \
    --parent_did ${did} \
    -o ${filename}.json \
    -n ${nevents} \
    --start ${starttime} \
    --end ${endtime}

mdExit=$?
if [ $mdExit -ne 0 ]; then
  echo "Error in md creation"
  exit $mdExit
fi

echo "formed"

cat ${filename}.json

echo "$pfn" > justin-processed-pfns.txt
justIN time: 2024-11-17 03:10:49 UTC       justIN version: 01.01.09