IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 7, 2023, 4:50:38 PM (3 years ago)
Author:
eugene
Message:

rework to use a stage/iteration tracked by the rawfix database

File:
1 edited

Legend:

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

    r42441 r42445  
    8080    book setword md5sum.book $pageName pantaskState RUN
    8181    book getword md5sum.book $pageName dateobs -var DATEOBS
     82    book getword md5sum.book $pageName iter    -var ITER
    8283    option $pageName
    8384    # save the page so we can use it below
    8485
    8586    # write an entry point in the log for this night
    86     sprintf tmpline "%s/%s/log.md5sum.runhosts.v0" $mypath $DATEOBS
     87    sprintf tmpline "%s/%s/log.md5sum.runhosts.v%d" $mypath $DATEOBS $ITER
    8788    date -var mydate
    8889    exec echo "# start runhosts $mydate" >> $tmpline
    8990
    90     command $mypath/get_hosts_md5s.sh $mypath $DATEOBS v0
     91    # the command returns these fields: dateobs stage md5host
     92    # NOTE: stage == ITER
     93    command $mypath/get_hosts_md5s.sh $mypath $DATEOBS $ITER
    9194  end
    9295
     
    142145    if ("$pageName" == "NULL") break
    143146
     147    # XXX NOTE: the output field is called 'stage'
    144148    book setword md5host.book $pageName pantaskState RUN
    145149    book getword md5host.book $pageName dateobs -var DATEOBS
     150    book getword md5host.book $pageName stage   -var ITER
    146151    book getword md5host.book $pageName md5host -var MD5HOST
    147152
     
    150155
    151156    # does the output go here?
    152     stdout $mypath/$DATEOBS/log.md5sum.runhosts.v0 
    153     stderr $mypath/$DATEOBS/log.md5sum.runhosts.v0 
     157    stdout $mypath/$DATEOBS/log.md5sum.runhosts.v$ITER 
     158    stderr $mypath/$DATEOBS/log.md5sum.runhosts.v$ITER 
    154159
    155160    # XXX TEST: $USE_HOST = ipp060
     
    167172
    168173    ## even when testing, use the original hostname here:
    169     $input = $mypath/$DATEOBS/$MD5HOST.inst.v0.txt
     174    $input = $mypath/$DATEOBS/$MD5HOST.inst.$ITER.txt
    170175
    171176    # need to make sure this will work on the ipp b-nodes:
    172177    # if we are able to run the 'exec', use a short retry time to launch all outstanding jobs
    173178    periods -exec 0.05
    174     command $mypath/get_md5s_instances.pl --hostname $USE_HOST --input $input --stage v0
     179    command $mypath/get_md5s_instances.pl --hostname $USE_HOST --input $input --stage $ITER
    175180  end
    176181
     
    271276  book getword md5sum.book $options:1 NHOST -var Nhosts
    272277  book getword md5sum.book $options:1 NDONE -var Ndone
     278  book getword md5sum.book $options:1 stage -var ITER
    273279  $Ndone ++
    274280  book setword md5sum.book $options:1 NDONE $Ndone
    275281  if ("$1" != "OK")
    276282    book setword md5sum.book $options:1 pantasksQuality $1
    277     sprintf tmpline "%s/%s/log.md5sum.runhosts.v0" $mypath $options:1
     283    sprintf tmpline "%s/%s/log.md5sum.runhosts.v%d" $mypath $options:1 $ITER
    278284    exec echo "failure $1 $options:0" >> $tmpline
    279285  else
Note: See TracChangeset for help on using the changeset viewer.