Changeset 42933
- Timestamp:
- Nov 8, 2025, 11:18:50 AM (8 months ago)
- Location:
- branches/eam_branches/ipp-20250626/tools/eam/burntool.20250520/src
- Files:
-
- 3 edited
-
bt.getchip.pt (modified) (5 diffs)
-
bt.onechip.pt (modified) (8 diffs)
-
burntool.pt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20250626/tools/eam/burntool.20250520/src/bt.getchip.pt
r42912 r42933 1 1 2 # the master book btChipNights lists all ofCHIPNIGHT books2 # btChipNights : bookw with list of all CHIPNIGHT books 3 3 # CHIPNIGHT books are named after the nights and chips, e.g. 20250704.XY01 4 4 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 15 if (not($BT_CHIPNIGHT_ITER)) set BT_CHIPNIGHT_ITER = 0 6 16 7 17 # get the next available chip (one chip from an exposure for a single night) … … 24 34 25 35 # if we have reached the end, restart the loop over chip hosts 26 if ($BT_CHIPNIGHT_ NSEQ>= $Nnights)27 $BT_CHIPNIGHT_ NSEQ= 036 if ($BT_CHIPNIGHT_ITER >= $Nnights) 37 $BT_CHIPNIGHT_ITER = 0 28 38 echo "restart loop" 29 39 break … … 31 41 32 42 # grab info for this CHIPNIGHT 33 book getpage btChipNights $BT_CHIPNIGHT_ NSEQ-var BT_CHIPNIGHT_PAGE43 book getpage btChipNights $BT_CHIPNIGHT_ITER -var BT_CHIPNIGHT_PAGE 34 44 book getword btChipNights $BT_CHIPNIGHT_PAGE CHIPNIGHT -var BT_CHIPNIGHT_BOOK 35 45 book getword btChipNights $BT_CHIPNIGHT_PAGE STATE -var BT_CHIPNIGHT_STATE … … 43 53 # is this chip/night ready to go? 44 54 if (("$BT_CHIPNIGHT_STATE" == "RUN") || ("$BT_CHIPNIGHT_STATE" == "FAIL")) 45 $BT_CHIPNIGHT_ NSEQ++55 $BT_CHIPNIGHT_ITER ++ 46 56 periods -exec 0.05 47 57 break … … 56 66 if ($BT_CHIPNIGHT_ENTRY >= $BT_CHIPNIGHT_NCHIP) 57 67 echo "done with chip/night $BT_CHIPNIGHT_BOOK" 58 $BT_CHIPNIGHT_ NSEQ++68 $BT_CHIPNIGHT_ITER ++ 59 69 periods -exec 0.05 60 70 break -
branches/eam_branches/ipp-20250626/tools/eam/burntool.20250520/src/bt.onechip.pt
r42911 r42933 1 1 2 2 # QQQ relevant variables: 3 4 #### NEW CONCEPT, USE THIS NOT burntool.pt #### 3 5 4 6 # btChipHost : book with list of chiphost books. each of those books … … 10 12 # jobs wanting data from a host. 11 13 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 13 24 # loops over the full list of chiphost books 14 25 … … 17 28 if (not($?BT_SETUP)) 18 29 $BT_SETUP = 1 19 $BT_CHIPHOST_ NSEQ= 030 $BT_CHIPHOST_ITER = 0 20 31 $BT_CHIPHOST_NMAX = 2 21 32 book create btChipHost … … 42 53 43 54 # if we have reached the end, restart the loop over chip hosts 44 if ($BT_CHIPHOST_ NSEQ>= $Nhosts)45 $BT_CHIPHOST_ NSEQ= 055 if ($BT_CHIPHOST_ITER >= $Nhosts) 56 $BT_CHIPHOST_ITER = 0 46 57 echo "restart loop" 47 58 break 48 59 end 49 60 50 book getpage btChipHost $BT_CHIPHOST_ NSEQ-var BT_CHIPHOST_PAGE61 book getpage btChipHost $BT_CHIPHOST_ITER -var BT_CHIPHOST_PAGE 51 62 book getword btChipHost $BT_CHIPHOST_PAGE HOSTNAME -var BT_CHIPHOST_BOOK 52 63 book getword btChipHost $BT_CHIPHOST_PAGE NRUN -var BT_CHIPHOST_NRUN … … 54 65 # only run NMAX jobs per chiphost 55 66 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" 58 69 periods -exec 0.05 59 70 break … … 63 74 book npages $BT_CHIPHOST_BOOK -var BT_CHIPHOST_NCHP 64 75 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" 67 78 periods -exec 0.05 68 79 break … … 72 83 book getpage $BT_CHIPHOST_BOOK 0 -var pageName -key pantaskState INIT 73 84 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" 76 87 periods -exec 0.05 77 88 break … … 149 160 150 161 # what else needs to happen after the job is done? 162 # XXX how do we use "quality" ?? 151 163 152 164 # decrement NRUN for this host -
branches/eam_branches/ipp-20250626/tools/eam/burntool.20250520/src/burntool.pt
r42911 r42933 1 1 ## pantasks script to manage the burntool processing 2 3 ####### DO NOT USE, DEPRECATED ######## 2 4 3 5 if (not($?BURNTOOL_INIT))
Note:
See TracChangeset
for help on using the changeset viewer.
