justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 1, Stage 1

Priority0
Processors1
Wall seconds80000
RSS bytes2097152000 (2000 MiB)
Max distance for inputs0.0
Enabled input RSEs
Enabled output RSEs
Enabled sites
Scopetestpro
Events for this stage

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
30300000

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
380325900022753553403117424160
Replicas per RSE3404.68970286918585126.002568253151853448.1175940662589149.50456768404983475.12556908404133190.843350884738953479.2032880897288240.05410091748483459.3678067325423285.274443578763343420.40051733447245315.60390232833243371.6945823291202323.73148538414583324.9906889968369307.69801855125383291.54692747240733271.368409054703653279.425223.500000000000033291.54692747240733175.631590945296383324.9906889968368139.301981448746232363.44589908251504124.29671191027123Replicas per RSERAL_ECHO (7%)RAL-PP (7%)DUNE_CERN_EOS (7%)DUNE_ES_PIC (7%)DUNE_FR_CCIN2P3_DIS…DUNE_FR_CCIN2P3_DISK (7%)DUNE_UK_LANCASTER_C…DUNE_UK_LANCASTER_CEPH (7%)DUNE_US_BNL_SDCC (7…DUNE_US_BNL_SDCC (7%)DUNE_US_FNAL_DISK_S…DUNE_US_FNAL_DISK_STAGE (7%)MANCHESTER (7%)NIKHEF (7%)PRAGUE (7%)QMUL (7%)SURFSARA (5%)

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'
justin simple-workflow \
  --rss-mb 2000 \
  --mql 'rucio-dataset testpro:awt' \
  --jobscript awt.jobscript
EOF

source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
setup python v3_9_13
setup rucio
setup justin
unset GFAL_CONFIG_DIR GFAL_PLUGIN_DIR
export X509_USER_PROXY=$JUSTIN_PATH/awt-proxy.pem
which rucio
rucio --version
python3 -c 'import gfal2 ; print("gfal version",gfal2.get_version())'

touch results.txt
export now=`date +'%s'`

echo '===Start $JUSTIN_PATH/justin-awt-rse-list.txt==='
cat "$JUSTIN_PATH/justin-awt-rse-list.txt"
echo '===End $JUSTIN_PATH/justin-awt-rse-list.txt==='

cat $JUSTIN_PATH/justin-awt-rse-list.txt | (

upload_dataset=`date --utc +'awt-uploads-%Y%W'`
while read rse_name write_protocol read_pfn
do
  echo '---------------------------------------------------------------------'
  echo $JUSTIN_SITE_NAME $rse_name $write_protocol $read_pfn

  # Test download of file prepositioned on RSEs
  xrdcp --force --nopbar --verbose "$read_pfn" "downloaded.txt"
  download_retval=$?

  echo "'xrdcp --force --nopbar --verbose $read_pfn downloaded.txt' returns $download_retval"

  # Test upload of random file
  fn=`mktemp awt-$now-XXXXXXXXXX`
  echo "$fn" > $fn

  echo "GFAL_CONFIG_DIR: $GFAL_CONFIG_DIR   GFAL_PLUGIN_DIR: $GFAL_PLUGIN_DIR"
  for i in 1 2 3 4 5
  do
    echo "justin-rucio-upload attempt $i"
    justin-rucio-upload \
            --rse "$rse_name" \
            --protocol "$write_protocol" \
            --scope testpro \
            --dataset $upload_dataset \
            --timeout 1200 \
            "$fn" 2>&1 
#            | sed -r 's/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g'
    upload_retval=$?
    if [ $upload_retval != 63 ] ; then
      break
    fi
  done

  echo "'justin-rucio-upload --rse $rse_name --protocol $write_protocol --scope testpro --dataset $upload_dataset $fn --timeout 1200' returns $upload_retval"
  echo
  echo

  echo "==awt== $JUSTIN_SITE_NAME $rse_name $download_retval $upload_retval" \
    "$read_pfn $write_protocol" >> results.txt

done

)

voms-proxy-info --all --file $X509_USER_PROXY

echo
echo '===== Results ====='
echo
echo 'Download/upload commands:'
echo 'xrdcp --force --nopbar --verbose $read_pfn downloaded.txt'
echo 'justin-rucio-upload --rse $rse_name --protocol $write_protocol --scope testpro --dataset '$upload_dataset' --timeout 1200 FILENAME'
echo 'Use the wrapper job link on the page for the job on the justIN Dashboard to find the full log file, with errors from these commands'
echo
echo 'Each line: $JUSTIN_SITE_NAME $rse_name $download_retval $upload_retval $read_pfn $write_protocol'
cat results.txt

justIN time: 2024-09-29 05:24:57 UTC       justIN version: 01.01.08