justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

21 July 2025: This instance at RAL is read-only. Please do not try submitting new workflows for now.

Workflow 7646, Stage 1

Priority50
Processors1
Wall seconds80000
Image/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
RSS bytes3145728000 (3000 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, ES_CIEMAT, ES_PIC, FR_CCIN2P3, IN_TIFR, IT_CNAF, NL_SURFsara, UK_Bristol, UK_Brunel, UK_Durham, UK_Edinburgh, UK_Lancaster, UK_Manchester, UK_Oxford, UK_QMUL, UK_RAL-PPD, UK_RAL-Tier1, UK_Sheffield, 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 stageRSE expression
1https://fndcadoor.fnal.gov:2880/dune/scratch/users/hsouza/07646/1*pida*.root

Environment variables

NameValue
CODE_TAR_DIR_LOCAL/cvmfs/fifeuser2.opensciencegrid.org/sw/dune/6cd695b3ee68ee1e769319df494d2cddcf54c103
DUNE_QUALIFIERe26:prof
DUNE_VERSIONv10_06_00d01
FCL_FILE/cvmfs/fifeuser4.opensciencegrid.org/sw/dune/ab1e5c7f9b3c76e96e23b56cba24939ce09df9a2/scripts/run_ereco_pida_ana.fcl
HAS_ART_OUTPUTfalse
NUM_EVENTS200

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
10000000098800120

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
2114300001050600892166498864
Files processed0020020040040060060080080010001000120012001400140016001600Jun-13 20:00Jun-13 21:00Jun-13 22:00Jun-13 23:00Jun-14 00:00Jun-14 01:00Jun-14 02:00Jun-14 03:00Jun-14 04:00Jun-14 05:00Jun-14 06:00Jun-14 07:00Jun-14 08:00Jun-14 09:00Jun-14 10:00Jun-14 11:00Jun-14 12:00Jun-14 13:00Files processedBin start timesNumber per binCH_UNIBE-LHEPUK_RAL-Tier1UK_QMULUK_RAL-PPDCERNES_PICUK_SheffieldUK_OxfordUK_LancasterUK_DurhamUK_ManchesterUK_BristolFR_CCIN2P3UK_Brunel
Replicas per RSE10000479.2311930422039198.7684753747321310000325.2026970744629323.91854976636871107280.80785741683115198.65868070147491103293.9341303108154173.330765006930451020312.5086274723386153.17299563677722973334.1354681971828139.2132144098748881356.74440606503714131.3001102691336310371.97998372603325129.00586045418862155377.9931738941615128.7191249609839Replicas per RSEFNAL_DCACHE (39%)PRAGUE (39%)RAL_ECHO (4%)NIKHEF (4%)QMUL (3%)SURFSARA (3%)RAL-PP (3%)DUNE_FR_CCIN2P3_DISK (1%)DUNE_ES_PIC (0%)

RSEs used

NameInputsOutputs
PRAGUE78410
RAL_ECHO16850
NIKHEF15310
SURFSARA13570
QMUL12760
RAL-PP10500
DUNE_FR_CCIN2P3_DISK4410
DUNE_ES_PIC2630
None09880

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_RAL-Tier19972521
CH_UNIBE-LHEP62201
UK_Durham57155
UK_Manchester50117
UK_RAL-PPD32157
ES_PIC23147
CERN19119
UK_Bristol1337
UK_Oxford1246
UK_Sheffield1125
UK_Lancaster811
UK_QMUL831
UK_Brunel11

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:-vdcoldbox_raw_dataprep_reco.fcl}
DUNE_VERSION=${DUNE_VERSION:-v09_75_00d00}
DUNE_QUALIFIER=${DUNE_QUALIFIER:-e20: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}_pida_${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: 2025-08-14 17:46:06 UTC       justIN version: 01.03.02