justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 2449, 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_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_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 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/pgranger/02449/1*ana*.root

Environment variables

NameValue
CODE_TAR_DIR_LOCAL/cvmfs/fifeuser2.opensciencegrid.org/sw/dune/901f283de3e4b80285463f715866cbb500fac3eb
DUNE_QUALIFIERe26:prof
DUNE_VERSIONv09_89_01d01
FCL_FILE/cvmfs/fifeuser1.opensciencegrid.org/sw/dune/e262e66816cb000da642c172686d4e8972a9b904/scripts/jobAtmoAnalysis.fcl
HAS_ART_OUTPUTfalse

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
100000344000655604

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
109440000107380281038013
Files processed00100010002000200030003000400040005000500060006000Jul-04 08:00Jul-04 13:00Jul-04 18:00Jul-04 23:00Jul-05 04:00Jul-05 09:00Jul-05 14:00Jul-05 19:00Jul-06 00:00Jul-06 05:00Jul-06 10:00Jul-06 15:00Jul-06 20:00Jul-07 01:00Jul-07 06:00Jul-07 11:00Jul-07 16:00Jul-07 21:00Jul-08 02:00Jul-08 07:00Jul-08 12:00Files processedBin start timesNumber per binCERNUK_ImperialUK_SheffieldUK_ManchesterUS_ColoradoUK_BrunelUS_UCSDFR_CCIN2P3US_UChicagoUS_PuertoRicoUK_LiverpoolUK_LancasterUS_FNAL-T1UK_EdinburghUK_DurhamCA_SFU
Replicas per RSE10000476.7773554047615250.87652472211321944300.5763938905187285.20268565926421670279.4273471924142222.812881200376071044292.12400169629973174.58027445776025624311.08888554039686150.24299399418865501327.67869948382094137.60580847754792459343.6446918509565129.7256847831556454359.8940798461621124.95517466773056249372.8191677874066123.1816752844497443378.23585280653475122.9404733022286526379.5171578610233122.92615902497892Replicas per RSEFNAL_DCACHE (58%)DUNE_US_BNL_SDCC (1…DUNE_US_BNL_SDCC (11%)RAL_ECHO (9%)RAL-PP (6%)DUNE_CERN_EOS (3%)PRAGUE (2%)NIKHEF (2%)DUNE_UK_LANCASTER_C…DUNE_UK_LANCASTER_CEPH (2%)DUNE_ES_PIC (1%)SURFSARA (0%)DUNE_FR_CCIN2P3_DIS…DUNE_FR_CCIN2P3_DISK (0%)

RSEs used

NameInputsOutputs
DUNE_US_BNL_SDCC20250
RAL_ECHO17280
RAL-PP10450
DUNE_CERN_EOS6260
PRAGUE5340
NIKHEF4650
DUNE_ES_PIC2500
SURFSARA430
DUNE_FR_CCIN2P3_DISK260

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_Edinburgh10
US_UCSD11
UK_RAL-Tier1080

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}_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: 2024-09-29 09:33:54 UTC       justIN version: 01.01.08