justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 551, Stage 1

Priority50
Processors1
Wall seconds80000
Image/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
RSS bytes4194304000 (4000 MiB)
Max distance for inputs90.0
Enabled input RSEs CERN_PDUNE_EOS, DUNE_CA_SFU, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, DUNE_UK_GLASGOW, DUNE_UK_LANCASTER_CEPH, DUNE_UK_MANCHESTER_CEPH, DUNE_US_BNL_SDCC, DUNE_US_FNAL_DISK_STAGE, FNAL_DCACHE, FNAL_DCACHE_STAGING, FNAL_DCACHE_TEST, MONTECARLO, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC
Enabled output RSEs CERN_PDUNE_EOS, DUNE_CA_SFU, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, DUNE_UK_GLASGOW, DUNE_UK_LANCASTER_CEPH, DUNE_UK_MANCHESTER_CEPH, DUNE_US_BNL_SDCC, DUNE_US_FNAL_DISK_STAGE, FNAL_DCACHE, FNAL_DCACHE_STAGING, FNAL_DCACHE_TEST, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC
Enabled sites BR_CBPF, CA_SFU, CERN, CH_UNIBE-LHEP, CZ_FZU, ES_CIEMAT, ES_PIC, FR_CCIN2P3, IT_CNAF, NL_NIKHEF, NL_SURFsara, UK_Bristol, UK_Brunel, UK_Durham, UK_Edinburgh, UK_Glasgow, UK_Imperial, UK_Lancaster, UK_Liverpool, UK_Manchester, UK_Oxford, UK_QMUL, UK_RAL-PPD, UK_RAL-Tier1, UK_Sheffield, US_Colorado, US_FNAL-FermiGrid, US_FNAL-T1, US_Michigan, US_PuertoRico, US_SU-ITS, US_Swan, US_UChicago, US_UConn-HPC, US_UCSD, US_Wisconsin
Scopefardet-vd
Events for this stage

Output patterns

 DestinationPatternLifetimeFor next stageRSE expression
1Rucio fardet-vd:fardet-vd-reco2-ritm2440929_551-fnal-w551s1p1*reco2.root51840000False

Environment variables

NameValue
INPUT_DIR/cvmfs/fifeuser1.opensciencegrid.org/sw/dune/67fa70d88651a634e48981ba9183a72ae15d3923

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
100000000999505

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
111040000108350651713012
Files processed00200200400400600600800800100010001200120014001400160016001800180020002000220022002400240026002600Aug-06 19:00Aug-06 22:00Aug-07 01:00Aug-07 04:00Aug-07 07:00Aug-07 10:00Aug-07 13:00Aug-07 16:00Aug-07 19:00Aug-07 22:00Aug-08 01:00Aug-08 04:00Aug-08 07:00Aug-08 10:00Aug-08 13:00Aug-08 16:00Aug-08 19:00Aug-08 22:00Aug-09 01:00Files processedBin start timesNumber per binES_PICNL_SURFsaraUK_RAL-Tier1UK_QMULUK_EdinburghUK_ManchesterNL_NIKHEFUS_UChicagoUK_ImperialUK_DurhamUK_OxfordUK_LancasterUS_WisconsinUS_FNAL-FermiG…US_FNAL-FermiGridCERNUK_RAL-PPDUS_ColoradoUS_UCSDCZ_FZUUK_GlasgowIT_CNAFUK_Brunel
Replicas per RSE9941409.75877684231614319.5715661673589479335.0019313302463133.55276857516887469360.7172183606399124.7908061159004443375.3162501189063123.0341196621890113376.92475814930395122.972026218769710377.5856470447384122.953983048519429378.1316786796039122.942354838412448378.62028047935024122.934464158717197379.0514271388485122.92947333076616379.4251019641957122.926643104406484379.71254980806935122.925410776940481379.85627475728086122.925102694287551379.91376483558395122.925036969947541379.97125494206375122.92500410777217Replicas per RSEDUNE_US_FNAL_DISK_S…DUNE_US_FNAL_DISK_STAGE (90%)PRAGUE (4%)FNAL_DCACHE (4%)DUNE_US_BNL_SDCC (0…DUNE_US_BNL_SDCC (0%)SURFSARA (0%)DUNE_CERN_EOS (0%)DUNE_UK_GLASGOW (0%)DUNE_UK_LANCASTER_C…DUNE_UK_LANCASTER_CEPH (0%)DUNE_CA_SFU (0%)RAL-PP (0%)QMUL (0%)DUNE_UK_MANCHESTER_…DUNE_UK_MANCHESTER_CEPH (0%)NIKHEF (0%)RAL_ECHO (0%)

RSEs used

NameInputsOutputs
DUNE_US_FNAL_DISK_STAGE96409966
PRAGUE5022
DUNE_US_BNL_SDCC273
SURFSARA132
DUNE_CERN_EOS105
DUNE_UK_GLASGOW96
DUNE_UK_LANCASTER_CEPH81
RAL-PP60
QMUL30
DUNE_UK_MANCHESTER_CEPH24
DUNE_CA_SFU10
NIKHEF10
RAL_ECHO12

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

File reset events, by site

SiteAllocatedOutputting
UK_Manchester593
ES_PIC402
UK_Edinburgh80
NL_SURFsara714
UK_RAL-Tier1610
UK_RAL-PPD57
CERN34
CZ_FZU24
US_Colorado12
UK_QMUL14
NL_NIKHEF11
US_UChicago11
UK_Imperial11
UK_Oxford06
UK_Lancaster02
UK_Durham01
IT_CNAF01

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


#Setup recent lar software suite
setup dunesw \
   "${DUNE_VERSION:-v09_91_04d01}" \
   -q "${DUNE_QUALIFIER:-e26:prof}"
#echo "printing env"
#env


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 "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

FILE=`echo ${DID_PFN_RSE} | cut -f2 -d' '`
DID=`echo ${DID_PFN_RSE} | cut -f1 -d' '`
echo "DID: ${DID}"
 
#metacat file show -mj ${DID} > old_md.json
#mcExit=$?
#if [ $mcExit -eq 0 ] ; then
#  echo "old metadata:"
#  cat old_md.json
#else
#  echo "Could not retrieve old metadata"
#  exit 1 
#fi

now=$(date -u +"%Y%m%dT%H%M%SZ")  
namespace=${JUSTIN_SCOPE:-"usertests"}

echo "===============JUSTIN_JOBSUB_ID"
runid=$JUSTIN_WORKFLOW_ID
CLUSTER=`echo $JUSTIN_JOBSUB_ID | awk '{split($0,a,"."); print a[1]}'`
echo $CLUSTER
 
# reco2
echo "============reco2=========================" 


infile=`echo $DID | awk -F ':' '{print $2}'`
reco2="${infile%.root}" 
reco2_name=${reco2}_${now}_reco2 

echo "check  output filename "  ${reco2_name}.root

#lar -c reco2_supernova_dunevd10kt_1x8x14_3view_30deg_prod2024.fcl $FILE -o ${reco2_name}.root -n 1 #-n -1 
lar -c reco2_supernova_dunevd10kt_1x8x14_3view_30deg_prod2024.fcl $FILE -o ${reco2_name}.root -n -1 
larExit=$? 


#echo "Reco step lar exit code $larExit"


if [ $larExit -eq 0 ] ; then 
  echo "Moving on to metadata extractor "
else
  exit $larExit 
fi
 
OUTFILE=`ls *reco2.root`
echo "============OUTPUT FILE: " $OUTFILE  
 
extractor_prod.py --infile ${OUTFILE}  --no_crc    --appfamily art --appname reco2 --appversion  v09_91_04d01  --requestid ritm2440929  --input_json ${INPUT_DIR}/le_input.json> ${OUTFILE}.ext.json  && sed -i -e 's/physics/fardet-vd/g' ${OUTFILE}.ext.json

extractorExit=$?
if [ $extractorExit -eq 0 ] ; then
  # Success !
  echo "Extracted metadata"
else
  # Error -- exit immediately 
  jobscriptExit=1
  echo "Failed to extract md"
  exit $extractorExit
fi

sed -i 's/Reco2/reco2/g'  ${OUTFILE}.ext.json

echo "checking file======" $DID
echo $DID > all-input-dids.txt
python ${INPUT_DIR}/pdjson2metadata ${OUTFILE}.ext.json  all-input-dids.txt usertests > ${OUTFILE}.json 
		  
converterExit=$?
if [ $converterExit -eq 0 ] ; then
  # Success !
  echo "MD conversion to MetaCat OK"
  echo "$FILE" > justin-processed-pfns.txt
else 
  jobscriptExit=1
  echo "Failed to convert md to MetacaCat"
  exit $converterExit
fi

 
ls
exit 0
justIN time: 2025-09-10 03:21:48 UTC       justIN version: 01.05.00
</