justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 12135, Stage 1

Workflow12135
Campaign529
Priority50
Processors1
Wall seconds80000
Image/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
RSS bytes4194304000 (4000 MiB)
Max distance for inputs30.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, CA_Victoria, 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_BNL, US_Colorado, US_FNAL-FermiGrid, US_FNAL-T1, US_Michigan, 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 stageRSE expression
1https://fndcadoor.fnal.gov:2880/dune/scratch/users/galli/my_atm_prod/justin_jobs/fnal/12135/1*ana*.root

Environment variables

NameValue
CODE_TAR_DIR_LOCAL/cvmfs/fifeuser3.opensciencegrid.org/sw/dune/f2aa0933d6b0302a87f8b92969147394234f3bf2
DUNE_QUALIFIERe26:prof
DUNE_VERSIONv09_91_04d00
FCL_FILE/cvmfs/fifeuser2.opensciencegrid.org/sw/dune/451a2e2ee9ad8cc0a9fdf20a6a0198a8dfe767f1/scripts/run_AtmSelection.fcl
HAS_ART_OUTPUTfalse

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
1000000099802

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
10960000104501133700
Files processed002020404060608080100100120120140140160160180180200200220220240240Jan-20 17:00Jan-20 18:00Jan-20 19:00Jan-20 20:00Jan-20 21:00Jan-20 22:00Jan-20 23:00Jan-21 00:00Jan-21 01:00Jan-21 02:00Jan-21 03:00Jan-21 04:00Jan-21 05:00Jan-21 06:00Jan-21 07:00Jan-21 08:00Jan-21 09:00Jan-21 10:00Jan-21 11:00Files processedBin start timesNumber per binNL_SURFsaraUK_SheffieldUK_RAL-Tier1UK_LancasterNL_NIKHEFUK_BrunelUK_RAL-PPDCZ_FZUCERNIT_CNAFUK_EdinburghUK_OxfordES_PICUK_ImperialUK_DurhamUK_QMUL
Replicas per RSE1000461.4736700717911167.290697162742531000429.3219897030464327.034570626905071000279.06255903528677263.9953831696653119299.53881525353825166.07292329861565108314.7061198431335151.3876570114323106331.42034052142515140.575663315463193348.5344148778852133.5111600578305884364.5910383284366129.8335279458678741376.1812943079509128.76926548371188Replicas per RSEDUNE_ES_PIC (28%)FNAL_DCACHE (28%)PRAGUE (28%)QMUL (3%)NIKHEF (3%)RAL_ECHO (2%)RAL-PP (2%)SURFSARA (2%)DUNE_FR_CCIN2P3_DISK (1%)

RSEs used

NameInputsOutputs
PRAGUE5150
QMUL1030
NIKHEF980
RAL_ECHO880
RAL-PP880
SURFSARA860
DUNE_ES_PIC490
DUNE_FR_CCIN2P3_DISK210
None0998

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_Imperial40
CZ_FZU40
NL_SURFsara30
UK_QMUL20

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:-run_MyAnalysis.fcl}
DUNE_VERSION=${DUNE_VERSION:-v09_91_04d00}
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-grid
	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"
else
  OUTPUT_CMD="-T ${fname}_ana_${now}.root"
fi

(
# 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
)

# 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 -lRS

# Create compressed tar file with all log files 
tar zcf `echo "$JUSTIN_JOBSUB_ID.logs.tgz" | sed 's/@/_/g'` *.log
exit $jobscriptExit
justIN time: 2026-02-04 04:27:44 UTC       justIN version: 01.06.00