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/sh
: <<'EOF'
Hello World jobscript for justIN
Submit a workflow like this to run 10 jobs:
justin simple-workflow --monte-carlo 10 --jobscript hello-world.jobscript
Or like this to run jobs and put the output file into Rucio-managed storage:
justin simple-workflow \
--monte-carlo 10 \
--jobscript hello-world.jobscript \
--description 'Hello World!!!' \
--scope usertests \
--output-pattern 'hello-world-*.txt:output-test-01'
EOF
# Try to get an unprocessed file from this stage
did_pfn_rse=`$JUSTIN_PATH/justin-get-file`
if [ "$did_pfn_rse" != "" ] ; then
did=`echo $did_pfn_rse | cut -f1 -d' '`
pfn=`echo $did_pfn_rse | cut -f2 -d' '`
rse=`echo $did_pfn_rse | cut -f3 -d' '`
# We say we processed whatever we were given
echo "$pfn" > justin-processed-pfns.txt
# Hello world
echo "Hello world $pfn"
echo "Hello world $pfn" >hello-world-`date +%s.%N.txt`
fi
exit 0
justIN time: 2024-11-25 02:10:44 UTC justIN version: 01.01.09