IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42933


Ignore:
Timestamp:
Nov 8, 2025, 11:18:50 AM (8 months ago)
Author:
eugene
Message:

working on burntool

Location:
branches/eam_branches/ipp-20250626/tools/eam/burntool.20250520/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20250626/tools/eam/burntool.20250520/src/bt.getchip.pt

    r42912 r42933  
    11
    2 # the master book btChipNights lists all of CHIPNIGHT books
     2# btChipNights : bookw with list of all CHIPNIGHT books
    33# CHIPNIGHT books are named after the nights and chips, e.g. 20250704.XY01
    44
    5 if (not($BT_CHIPNIGHT_NSEQ)) set BT_CHIPNIGHT_NSEQ = 0
     5# Design Concept:  We have a collection of nights to process.  Each night has a collection of
     6# exposures, each with a number of chips.  The books in this pantasks file
     7# list the complete set of chip/exposures for a given night.
     8
     9# a given chip/exposure goes throught the following set of steps:
     10# INIT : the ChipNight book is populated with the list of chip/exposures based on queries to the db
     11# PREP : a job is active to determine the chip/exposure basic info (paths, etc)
     12# DONEPREP : after the chip/exposure has been prepped, it waits to be run
     13#
     14
     15if (not($BT_CHIPNIGHT_ITER)) set BT_CHIPNIGHT_ITER = 0
    616
    717# get the next available chip (one chip from an exposure for a single night)
     
    2434
    2535    # if we have reached the end, restart the loop over chip hosts
    26     if ($BT_CHIPNIGHT_NSEQ >= $Nnights)
    27       $BT_CHIPNIGHT_NSEQ = 0
     36    if ($BT_CHIPNIGHT_ITER >= $Nnights)
     37      $BT_CHIPNIGHT_ITER = 0
    2838      echo "restart loop"
    2939      break
     
    3141   
    3242    # grab info for this CHIPNIGHT
    33     book getpage btChipNights $BT_CHIPNIGHT_NSEQ           -var BT_CHIPNIGHT_PAGE
     43    book getpage btChipNights $BT_CHIPNIGHT_ITER           -var BT_CHIPNIGHT_PAGE
    3444    book getword btChipNights $BT_CHIPNIGHT_PAGE CHIPNIGHT -var BT_CHIPNIGHT_BOOK
    3545    book getword btChipNights $BT_CHIPNIGHT_PAGE STATE     -var BT_CHIPNIGHT_STATE
     
    4353    # is this chip/night ready to go?
    4454    if (("$BT_CHIPNIGHT_STATE" == "RUN") || ("$BT_CHIPNIGHT_STATE" == "FAIL"))
    45       $BT_CHIPNIGHT_NSEQ ++
     55      $BT_CHIPNIGHT_ITER ++
    4656      periods -exec 0.05
    4757      break
     
    5666    if ($BT_CHIPNIGHT_ENTRY >= $BT_CHIPNIGHT_NCHIP)
    5767      echo "done with chip/night $BT_CHIPNIGHT_BOOK"
    58       $BT_CHIPNIGHT_NSEQ ++
     68      $BT_CHIPNIGHT_ITER ++
    5969      periods -exec 0.05
    6070      break
  • branches/eam_branches/ipp-20250626/tools/eam/burntool.20250520/src/bt.onechip.pt

    r42911 r42933  
    11
    22# QQQ relevant variables:
     3
     4#### NEW CONCEPT, USE THIS NOT burntool.pt ####
    35
    46# btChipHost : book with list of chiphost books.  each of those books
     
    1012# jobs wanting data from a host.
    1113
    12 # $BT_CHIPHOST_NSEQ : current (or last) chiphost examined.  this task
     14# each page of btChipHost has the name of the host (HOSTNAME), current
     15# number of running jobs (NRUN).  HOSTNAME is also the name of the
     16# associate book containing jobs for that host.
     17
     18# HOSTNAME books: each hostname is the name of a book containing the list
     19# of chips to be run.  In these books, each page contains info about the
     20# chip: filenames, exposure, class_id, etc, and pantasksState which may be
     21# INIT, RUN, DONE
     22
     23# $BT_CHIPHOST_ITER : current (or last) chiphost examined.  this task
    1324# loops over the full list of chiphost books
    1425
     
    1728if (not($?BT_SETUP))
    1829  $BT_SETUP = 1
    19   $BT_CHIPHOST_NSEQ = 0
     30  $BT_CHIPHOST_ITER = 0
    2031  $BT_CHIPHOST_NMAX = 2
    2132  book create btChipHost
     
    4253
    4354    # if we have reached the end, restart the loop over chip hosts
    44     if ($BT_CHIPHOST_NSEQ >= $Nhosts)
    45       $BT_CHIPHOST_NSEQ = 0
     55    if ($BT_CHIPHOST_ITER >= $Nhosts)
     56      $BT_CHIPHOST_ITER = 0
    4657      echo "restart loop"
    4758      break
    4859    end
    4960   
    50     book getpage btChipHost $BT_CHIPHOST_NSEQ          -var BT_CHIPHOST_PAGE
     61    book getpage btChipHost $BT_CHIPHOST_ITER          -var BT_CHIPHOST_PAGE
    5162    book getword btChipHost $BT_CHIPHOST_PAGE HOSTNAME -var BT_CHIPHOST_BOOK
    5263    book getword btChipHost $BT_CHIPHOST_PAGE NRUN     -var BT_CHIPHOST_NRUN
     
    5465    # only run NMAX jobs per chiphost
    5566    if ($BT_CHIPHOST_NRUN >= $BT_CHIPHOST_NMAX)
    56       $BT_CHIPHOST_NSEQ ++
    57       echo "try next ($BT_CHIPHOST_NSEQ) -- done loop"
     67      $BT_CHIPHOST_ITER ++
     68      echo "try next ($BT_CHIPHOST_ITER) -- done loop"
    5869      periods -exec 0.05
    5970      break
     
    6374    book npages $BT_CHIPHOST_BOOK -var BT_CHIPHOST_NCHP
    6475    if ($BT_CHIPHOST_NCHP == 0)
    65       $BT_CHIPHOST_NSEQ ++
    66       echo "try next ($BT_CHIPHOST_NSEQ) -- no chips"
     76      $BT_CHIPHOST_ITER ++
     77      echo "try next ($BT_CHIPHOST_ITER) -- no chips"
    6778      periods -exec 0.05
    6879      break
     
    7283    book getpage $BT_CHIPHOST_BOOK 0 -var pageName -key pantaskState INIT
    7384    if ("$pageName" == "NULL")
    74       $BT_CHIPHOST_NSEQ ++
    75       echo "try next ($BT_CHIPHOST_NSEQ) -- nothing ready"
     85      $BT_CHIPHOST_ITER ++
     86      echo "try next ($BT_CHIPHOST_ITER) -- nothing ready"
    7687      periods -exec 0.05
    7788      break
     
    149160
    150161  # what else needs to happen after the job is done?
     162  # XXX how do we use "quality" ??
    151163
    152164  # decrement NRUN for this host
  • branches/eam_branches/ipp-20250626/tools/eam/burntool.20250520/src/burntool.pt

    r42911 r42933  
    11## pantasks script to manage the burntool processing
     2
     3####### DO NOT USE, DEPRECATED ########
    24
    35if (not($?BURNTOOL_INIT))
Note: See TracChangeset for help on using the changeset viewer.