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
Site
Allocated
Outputting
US_FNAL-FermiGrid
219
492
US_FNAL-T1
42
91
Jobscript
#!/bin/bash
#
# Example jobscript that makes sha1sum checksums of all the files
# referred to by the MQL expression give on the justin command line.
#
# Submit with something like this:
#
# ./justin simple-workflow \
# --mql "rucio-dataset protodune-sp:np04_raw_run_number_5769" \
# --scope test --output-pattern 'sha1sum-*.txt:test-01' \
# --jobscript simple.jobscript
#
# Then monitor with dashboard or ./justin show-jobs --workflow-id ID
# where ID is the value printed by the first command
#
# Get an unprocessed file from this stage
did_pfn_rse=`$JUSTIN_PATH/justin-get-file`
did=`echo $did_pfn_rse | cut -f1 -d' '`
pfn=`echo $did_pfn_rse | cut -f2 -d' '`
rse=`echo $did_pfn_rse | cut -f3 -d' '`
# These files are found by the wrapper job using the --output-pattern
# form given on the justin command line (see above).
xrdcp --nopbar --debug 1 $pfn tmp
sha1sum tmp >sha1sum-$(date -u +%Y%m%dT%H%M%SZ).txt
# We say we processed whatever we were given
echo "$did" > justin-processed-dids.txt
# Log what we did
echo "Processed $did at $pfn for Workflow $JUSTIN_WORKFLOW_ID, Stage $JUSTIN_STAGE_ID"
exit 0
justIN time: 2024-11-21 15:02:00 UTC justIN version: 01.02.rc5