justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 12284, Stage 1

Workflow12284
Campaign653
Priority50
Processors1
Wall seconds80000
Image/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
RSS bytes2097152000 (2000 MiB)
Max distance for inputs100.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
1Rucio usertests:fermi-gen-v1-fnal-w12284s1p1*_gen_*.root2592000False

Environment variables

NameValue
INPUT_TAR_DIR_LOCAL/cvmfs/fifeuser4.opensciencegrid.org/sw/dune/fcd743ba134d6c91bbf1aa152240f03b81c17c8e
MODEfermi
NUM_EVENTS1000

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
5005000000

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
1230000037050081

RSEs used

NameInputsOutputs
DUNE_UK_MANCHESTER_CEPH023
DUNE_US_FNAL_DISK_STAGE021
RAL_ECHO09
SURFSARA08
DUNE_ES_PIC07
NIKHEF05
DUNE_US_BNL_SDCC04
DUNE_IT_INFN_CNAF03
DUNE_CERN_EOS01

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

Jobscript

#!/bin/bash

# --- 1. SETUP VARIABLES ---
# Capture the counter from justIN (Argument $1)
PROCESS_NUM=$1

# Fail-safe: If running interactively without an argument, use a timestamp
if [ -z "$PROCESS_NUM" ]; then
    PROCESS_NUM="test_$(date +%s)"
fi

UNIQUE_ID=${PROCESS_NUM}_${RANDOM}

echo "--------------------------------------------------"
echo "DEBUG: Job ID: $PROCESS_NUM"
echo "DEBUG: Unique ID: $UNIQUE_ID"
echo "--------------------------------------------------"

# --- 2. SETUP ENVIRONMENT ---
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
setup dunesw v09_91_04d01 -q e26:prof

# --- 3. GET FILES (With Safety Check) ---
echo "DEBUG: Getting custom files from $INPUT_TAR_DIR_LOCAL"

if [ -d "$INPUT_TAR_DIR_LOCAL" ]; then
    cp $INPUT_TAR_DIR_LOCAL/*.react .
    cp $INPUT_TAR_DIR_LOCAL/*.fcl .
else
    echo "ERROR: Input directory '$INPUT_TAR_DIR_LOCAL' not found!"
    # We don't exit here for the test, but on the grid this would be bad.
fi

# --- 4. RUN GENERATION ---
# Define Output Name
OUTPUT_NAME="${MODE}_gen_${JUSTIN_WORKFLOW_ID}_${UNIQUE_ID}.root"

echo "DEBUG: Running Generation for $MODE with $NUM_EVENTS events..."

# Run LAR with the -n flag!
lar -c run_${MODE}.fcl \
    -n "$NUM_EVENTS" \
    -o "$OUTPUT_NAME"

# Check exit code manually
if [ $? -eq 0 ]; then
    echo "--------------------------------------------------"
    echo "SUCCESS: Generation successful."
    echo "Output: $OUTPUT_NAME"
    echo "--------------------------------------------------"
else
    echo "--------------------------------------------------"
    echo "ERROR: Generation failed!"
    echo "--------------------------------------------------"
    exit 1
fi
justIN time: 2026-02-04 04:44:19 UTC       justIN version: 01.06.00