IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2023, 8:18:25 AM (3 years ago)
Author:
eugene
Message:

allow long-running jobs (md5sum) to be remote; fix some error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum.pt

    r42440 r42441  
    5555# output: md5host.book
    5656task nights.md5sum.loadhosts
    57 
    5857  periods      -poll $RPOLL
    5958  periods      -exec $REXEC
    6059  periods      -timeout 60
     60  host          local
    6161  npending 1
     62  # note: the tasks which return their results via stdout
     63  # seem to fail if run remotely. 
    6264
    6365  stdout $LOGDIR/md5sum.loadhosts.stdout.log 
     
    8688    exec echo "# start runhosts $mydate" >> $tmpline
    8789
    88     command get_hosts_md5s.sh $DATEOBS v0
     90    command $mypath/get_hosts_md5s.sh $mypath $DATEOBS v0
    8991  end
    9092
     
    9294    # convert the stdout 'queue' to entries in a book
    9395    # fields in the table will become words in the page
     96    queueprint stdout
    9497    queuesize stdout -var Nhosts
    9598    queue2book -raw-columns -key dateobs:md5host -uniq -setword pantaskState INIT stdout md5host.book
    9699    book setword md5sum.book $options:0 NHOST {$Nhosts - 1}
    97100    book setword md5sum.book $options:0 NDONE 0
     101    book list
     102    book listbook md5sum.book
    98103    # use the queuesize (Nhosts) to track how many jobs are done / to be done
    99104  end
     
    117122end
    118123
     124# runs on the hosts identified by get_hosts_md5s.sh
    119125# output: md5host.book
    120126task nights.md5sum.runhosts
Note: See TracChangeset for help on using the changeset viewer.