justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 2812, Stage 1

Priority50
Processors1
Wall seconds80000
RSS bytes4194304000 (4000 MiB)
Max distance for inputs30.0
Enabled input RSEs CERN_PDUNE_EOS, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, 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, MANCHESTER, MONTECARLO, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC
Enabled output RSEs CERN_PDUNE_EOS, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, 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, MANCHESTER, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC
Enabled sites BR_CBPF, CA_SFU, CA_Victoria, CERN, CH_UNIBE-LHEP, CZ_FZU, ES_CIEMAT, ES_PIC, FR_CCIN2P3, IN_TIFR, IT_CNAF, NL_NIKHEF, NL_SURFsara, UK_Bristol, UK_Brunel, UK_Durham, UK_Edinburgh, UK_Imperial, UK_Lancaster, UK_Liverpool, UK_Manchester, UK_Oxford, UK_RAL-Tier1, UK_Sheffield, US_BNL, US_Caltech, US_Colorado, US_FNAL-FermiGrid, US_FNAL-T1, US_Michigan, US_MIT, US_Nebraska, US_NotreDame, US_PuertoRico, US_SU-ITS, US_Swan, US_UChicago, US_UConn-HPC, US_UCSD, US_Wisconsin
Scopeusertests
Events for this stage

Output patterns

 DestinationPatternLifetimeFor next stage
1https://fndcadoor.fnal.gov:2880/dune/scratch/users/ismerio/02812/1*Validation_*.root

Environment variables

NameValue
CODE_TAR_DIR_LOCAL/cvmfs/fifeuser1.opensciencegrid.org/sw/dune/bfed64c73a8ee837655b12fb60b9f7b9323d6526
DUNE_QUALIFIERe26:prof
DUNE_VERSIONv09_91_02d01
FCL_FILE/cvmfs/fifeuser1.opensciencegrid.org/sw/dune/5b45caf6af7fe0f51ae25cc2c43a8c7631bbec54//exp/dune/app/users/ismerio/env-testreco/work/myreco.fcl
HAS_ART_OUTPUTtrue
NUM_EVENTS-1

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
10000000097780222

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
12779000010403024483658663872
Files processed00100100200200300300400400500500600600700700800800900900100010001100110012001200130013001400140015001500Aug-13 00:00Aug-13 03:00Aug-13 06:00Aug-13 09:00Aug-13 12:00Aug-13 15:00Aug-13 18:00Aug-13 21:00Aug-14 00:00Aug-14 03:00Aug-14 06:00Aug-14 09:00Aug-14 12:00Aug-14 15:00Aug-14 18:00Aug-14 21:00Aug-15 00:00Aug-15 03:00Aug-15 06:00Aug-15 09:00Aug-15 12:00Aug-15 15:00Files processedBin start timesNumber per binUK_BrunelIT_CNAFCERNFR_CCIN2P3UK_SheffieldCZ_FZUNL_SURFsaraNL_NIKHEFUK_ManchesterUS_UChicagoES_PICUK_ImperialUS_ColoradoUK_LancasterUK_RAL-Tier1US_FNAL-T1US_FNAL-FermiG…US_FNAL-FermiGridCA_SFUUS_WisconsinUK_LiverpoolUK_Durham
Replicas per RSE10000474.1220353746519188.054646539598710000332.63961623925684312.226121717536671107282.9137322980033197.240006688953031103293.3102498335629172.507668801272471020309.11989566721746152.14636354905332973328.22266050524536137.27681437197464881348.7122495956358127.91544424105844401363.8638619879752124.22787060278756310372.45800274417417123.20818127886444155378.1128398273293122.94270662213165Replicas per RSEFNAL_DCACHE (38%)PRAGUE (38%)RAL_ECHO (4%)NIKHEF (4%)QMUL (3%)SURFSARA (3%)RAL-PP (3%)DUNE_US_BNL_SDCC (1…DUNE_US_BNL_SDCC (1%)DUNE_FR_CCIN2P3_DIS…DUNE_FR_CCIN2P3_DISK (1%)DUNE_ES_PIC (0%)

RSEs used

NameInputsOutputs
PRAGUE62430
NIKHEF13780
RAL_ECHO12120
SURFSARA10500
RAL-PP9490
DUNE_US_BNL_SDCC4260
DUNE_FR_CCIN2P3_DISK2900
DUNE_ES_PIC1830

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
NL_NIKHEF29721
CZ_FZU8890
UK_Manchester4588
IT_CNAF4263
ES_PIC3634
UK_Brunel3334
NL_SURFsara26112
CERN956
UK_Imperial88
UK_Liverpool714
UK_Sheffield325
US_NotreDame30
US_FNAL-FermiGrid30
FR_CCIN2P3210
US_UChicago22
UK_Durham15
UK_Lancaster16
US_FNAL-T111
UK_RAL-Tier1042
CA_SFU02

Jobscript

#!/bin/bash
:<<'EOF'

To use this jobscript to process 10 files from the dc4-vd-coldbox-bottom
data and put the output in the usertests namespace (MetaCat) and 
scope (Rucio), and in the usertests:output-test-01 dataset in MetaCat and
Rucio, use this command to create the workflow:

justin simple-workflow \
--mql "files from justin-tutorial:justin-tutorial-2024 limit 10" \
--jobscript dc4-vd-coldbox-bottom.jobscript --max-distance 30 --rss-mb 4000 \
--scope usertests --output-pattern '*_reco_data_*.root:output-test-01' \
--lifetime-days 1

The following optional environment variables can be set when creating the
workflow/stage: FCL_FILE, NUM_EVENTS, DUNE_VERSION, DUNE_QUALIFIER 

EOF

# fcl file and DUNE software version/qualifier to be used
FCL_FILE=${FCL_FILE:-myreco.fcl}
DUNE_VERSION=${DUNE_VERSION:-v09_91_02d01}
DUNE_QUALIFIER=${DUNE_QUALIFIER:-e26:prof}
HAS_ART_OUTPUT=${HAS_ART_OUTPUT:true}

# number of events to process from the input file
if [ "$NUM_EVENTS" != "" ] ; then
 events_option="-n $NUM_EVENTS"
fi

# First get an unprocessed file from this stage
did_pfn_rse=`$JUSTIN_PATH/justin-get-file`

if [ "$did_pfn_rse" = "" ] ; then
  echo "Nothing to process - exit jobscript"
  exit 0
fi

# pfn is also needed when creating justin-processed-pfns.txt
pfn=`echo $did_pfn_rse | cut -f2 -d' '`
echo "Input PFN = $pfn"

# Setup DUNE environment
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh

# the xroot lib for streaming non-root files is in testproducts, 
# so add it to the start of the path
export PRODUCTS=/cvmfs/dune.opensciencegrid.org/products/dune/testproducts:${PRODUCTS}
setup dunesw "$DUNE_VERSION" -q "$DUNE_QUALIFIER"
export INPUT_TAR_DIR_LOCAL=${CODE_TAR_DIR_LOCAL}

if [ ! -z "$CODE_TAR_DIR_LOCAL" ]; then
	echo "Using custom sources from $CODE_TAR_DIR_LOCAL"
	source ${CODE_TAR_DIR_LOCAL}/localProducts*/setup
	mrbslp
fi

# Construct outFile from input $pfn 
now=$(date -u +"%Y-%m-%dT_%H%M%SZ")
Ffname=`echo $pfn | awk -F/ '{print $NF}'`
fname=`echo $Ffname | awk -F. '{print $1}'`
outFile=${fname}_reco_data_${now}.root

campaign="justIN.w${JUSTIN_WORKFLOW_ID}s${JUSTIN_STAGE_ID}"
if [ "$HAS_ART_OUTPUT" = true ];then
  OUTPUT_CMD="-o $outFile"
  echo "Art output set to $outFile"
else
  OUTPUT_CMD="-T ${fname}_ana_${now}.root"
fi

echo "Contents of $INPUT_TAR_DIR_LOCAL:"
ls ${CODE_TAR_DIR_LOCAL} 
export FW_SEARCH_PATH=${CODE_TAR_DIR_LOCAL}:$FW_SEARCH_PATH #Necessary for the local path to be searched first for xml files.
#echo "$FW_SEARCH_PATH"

(
# Do the scary preload stuff in a subshell!
export LD_PRELOAD=${XROOTD_LIB}/libXrdPosixPreload.so
echo "$LD_PRELOAD"


lar -c $FCL_FILE $events_option $OUTPUT_CMD "$pfn" > ${fname}_reco_${now}.log 2>&1 
mv Validation.root Validation_${fname}.root
)

# Subshell exits with exit code of last command
larExit=$?
echo "lar exit code $larExit"

echo '=== Start last 100 lines of lar log file ==='
tail -100 ${fname}_reco_${now}.log
echo '=== End last 100 lines of lar log file ==='

if [ $larExit -eq 0 ] ; then
  # Success !
  echo "$pfn" > justin-processed-pfns.txt
  jobscriptExit=0
else
  # Oh :(
  jobscriptExit=1
fi

ls 
ls ${CODE_TAR_DIR_LOCAL} 

# Create compressed tar file with all log files 
tar zcf `echo "$JUSTIN_JOBSUB_ID.logs.tgz" | sed 's/@/_/g'` *.log
exit $jobscriptExit
justIN time: 2024-11-17 05:17:38 UTC       justIN version: 01.01.09