Workflow 10198, Stage 1
| Workflow | 10198 |
| Priority | 50 |
| Processors | 1 |
| Wall seconds | 80000 |
| Image | /cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest |
| RSS bytes | 2096103424 (1999 MiB) |
| Max distance for inputs | 100.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, 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_Lancaster, UK_Liverpool, UK_Manchester, UK_Oxford, UK_QMUL, UK_RAL-PPD, UK_RAL-Tier1, UK_Sheffield, US_Colorado, US_FNAL-FermiGrid, US_FNAL-T1, US_Michigan, US_PuertoRico, US_SU-ITS, US_Swan, US_UChicago, US_UConn-HPC, US_UCSD, US_Wisconsin |
| Scope | usertests |
| Events for this stage |
Output patterns
| | Destination | Pattern | Lifetime | For next stage | RSE expression |
|---|
| 1 | Rucio usertests:calcuttj_h2_merge_test-fnal-w10198s1p1 | *root | 604800 | False | |
Environment variables
| Name | Value |
|---|
| DATASET | usertests:calcuttj_h2_beam_test-fnal-w10171s1p1 |
| do_counts | 1 |
| DUNESW_TAR | /cvmfs/fifeuser4.opensciencegrid.org/sw/dune/084a2623749448b13152b0d27491791c3902f9fc |
| DUNESW_VERSION | v10_10_02d00 |
| extra_fcl_path | /cvmfs/fifeuser4.opensciencegrid.org/sw/dune/bdf1c2b4ca937343e48c97e48c8443e0e35aa6c9 |
| fcl_file | run_eventcount_pdvd.fcl |
| LIMIT | 100 |
| MERGE_DIR | /cvmfs/fifeuser4.opensciencegrid.org/sw/dune/5a837a2f9ce0b916d8725ae4ed0b18872c84fe1f |
File states
| Total files | Finding | Unallocated | Allocated | Outputting | Processed | Not found | Failed |
|---|
|
| 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Job states
| Total | Submitted | Started | Processing | Outputting | Finished | Notused | Aborted | Stalled | Jobscript error | Outputting failed | None processed |
|---|
| 2 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 |
RSEs used
| Name | Inputs | Outputs |
|---|
| MONTECARLO | 1 | 0 |
| RAL_ECHO | 0 | 1 |
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
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
if [ -z ${DATASET} ]; then
echo "ERROR MUST SUPPLY DATASET"
exit 1
fi
if [ -z ${MERGE_DIR} ]; then
echo "ERROR MUST SUPPLY MERGE_DIR"
exit 1
fi
if [ -z ${JUSTIN_PROCESSORS} ]; then
JUSTIN_PROCESSORS=1
fi
echo "Justin processors: ${JUSTIN_PROCESSORS}"
export TF_NUM_THREADS=${JUSTIN_PROCESSORS}
export OPENBLAS_NUM_THREADS=${JUSTIN_PROCESSORS}
export JULIA_NUM_THREADS=${JUSTIN_PROCESSORS}
export MKL_NUM_THREADS=${JUSTIN_PROCESSORS}
export NUMEXPR_NUM_THREADS=${JUSTIN_PROCESSORS}
export OMP_NUM_THREADS=${JUSTIN_PROCESSORS}
##Get the MC number from this to bookkeep for justin
DID_PFN_RSE=`$JUSTIN_PATH/justin-get-file`
pfn_exit=$?
if [ $pfn_exit -ne 0 ]; then
echo "Error in justin-get-file. Exiting safely"
exit 0
fi
echo "did_pfn_rse $DID_PFN_RSE"
pfn=`echo $DID_PFN_RSE | cut -f2 -d' '`
setup root v6_28_12 -q e26:p3915:prof
export METACAT_SERVER_URL=https://metacat.fnal.gov:9443/dune_meta_prod/app;
export METACAT_AUTH_SERVER_URL=https://metacat.fnal.gov:8143/auth/dune
setup metacat
setup rucio v35_4_0
LIMIT=${LIMIT:-100}
subrun=`echo $JUSTIN_JOBSUB_ID | cut -f1 -d@ | cut -f2 -d.`
run=`echo $JUSTIN_JOBSUB_ID | cut -f1 -d@ | cut -f1 -d.`
echo $subrun $run
python $MERGE_DIR/merge_g4bl.py merge \
--dataset ${DATASET} \
-o inherit \
--limit ${LIMIT} \
--iter $(( 10#$pfn - 1 )) --run $run \
--subrun $subrun
#--namespace ehn1-beam-np04
if [ $? -ne 0 ]
then
echo "Exiting with error"
exit 1
fi
if [ -n "${do_counts}" ]
then
echo "Will do counting"
if [ -n "${DUNESW_TAR}" ]
then
export PRODUCTS=${DUNESW_TAR}:${PRODUCTS}
fi
DUNESW_VERSION=${DUNESW_VERSION:-v10_13_00d00}
setup dunesw $DUNESW_VERSION -q e26:prof
setup_exit=$?
if [ $setup_exit -ne 0 ]; then
echo "Failed to setup dunesw $DUNESW_VERSION"
exit $setup_exit
fi
if [ -n "$extra_fcl_path" ]; then
export FHICL_FILE_PATH=${extra_fcl_path}:${FHICL_FILE_PATH}
echo "Added ${extra_fcl_path} to fhicl file path"
echo "${FHICL_FILE_PATH}"
fi
fcl_file=${fcl_file:-"run_eventcount.fcl"}
outname=$(ls *root | head -n 1) #Risky: assuming one root file
runEventCounter -c $fcl_file -i $outname -o "eventcount.txt" -n ${JUSTIN_PROCESSORS}
count_exit=$?
if [ $count_exit -ne 0 ]; then
echo "Failed to run counts"
exit $count_exit
fi
count=$(head -n 1 eventcount.txt | cut -d' ' -f2)
echo "Count: $count"
sed -i "/metadata/a\
\"core.event_count\": ${count}," ${outname}.json
fi
echo "$pfn" > justin-processed-pfns.txt