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 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
Scopetestpro
Events for this stage

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
30300000

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
4754237000288765534201441247380
Replicas per RSE3397.9604990030417118.847767017655173431.3589982987368132.071168340631863457.5442789108387156.660783567766433472.8386959941793189.163074315248653475.0941941209927225.013190437138553463.9939952822043259.176089662649363441.09708941741195286.85369432005943409.6192789108387304.158767086890463373.9815287031153308.66086191984983339.1890549034878299.7276729788683310.1283570616577278.61384010326483290.88092382761107248.284738374826363284.15213.000000000000033290.88092382761107177.715261625173673310.12835706165765147.386159896735253339.18905490348766126.272327021132072367.9868095628613117.9058058790073Replicas per RSEDUNE_UK_MANCHES…DUNE_UK_MANCHESTER_CEPH (6%)DUNE_UK_GLASGOW…DUNE_UK_GLASGOW (6%)DUNE_CERN_EOS (…DUNE_CERN_EOS (6%)DUNE_CA_SFU (6%)DUNE_ES_PIC (6%)DUNE_FR_CCIN2P3…DUNE_FR_CCIN2P3_DISK (6%)DUNE_IT_INFN_CN…DUNE_IT_INFN_CNAF (6%)DUNE_UK_LANCAST…DUNE_UK_LANCASTER_CEPH (6%)DUNE_US_BNL_SDC…DUNE_US_BNL_SDCC (6%)DUNE_US_FNAL_DI…DUNE_US_FNAL_DISK_STAGE (6%)MANCHESTER (6%)NIKHEF (6%)PRAGUE (6%)QMUL (6%)RAL_ECHO (6%)RAL-PP (6%)SURFSARA (4%)

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-12-03 17:16:05 UTC       justIN version: 01.01.09