IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 17, 2023, 4:41:34 PM (3 years ago)
Author:
eugene
Message:

merging from trunk

Location:
branches/eam_branches/ipp-20230313/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/tools

  • branches/eam_branches/ipp-20230313/tools/eam/rawfix.20230221/src/rawfix.ckchip.pt

    r42406 r42531  
    3030  end
    3131
     32  # need to delete DONE entries here so the book is not repopulated
     33  # by already-running load tasks
    3234  task.exit 0
    3335    # convert the stdout 'queue' to entries in a book
    3436    # fields in the table will become words in the page
    3537    queue2book -raw-columns -key dateobs -uniq -setword pantaskState INIT -setword pantasksQuality OK stdout ckchip.book
     38    book delpage ckchip.book -key pantaskState DONE
    3639  end
    3740
     
    5255
    5356task nights.ckchip.run
    54 
    5557  periods      -poll $RPOLL
    5658  periods      -exec $REXEC
    5759  periods      -timeout 60
    58   npending 1
    59 
    60   stdout $LOGDIR/ckchip.run.stdout.log 
    61   stderr $LOGDIR/ckchip.run.stderr.log
     60  host         -required $HOST_CKCHIP
     61  npending 2
    6262
    6363  task.exec
     
    7575    book setword ckchip.book $pageName pantaskState RUN
    7676    book getword ckchip.book $pageName dateobs -var DATEOBS
     77    book getword ckchip.book $pageName iter    -var ITER
    7778    option $pageName
    7879
     
    8182    substr $DATEOBS 6 2 DAY
    8283
     84    # this is the first place in the proces that this location is known
     85    mkdir  $mypath/$YEAR/$DATEOBS
     86    stdout $mypath/$YEAR/$DATEOBS/log.ckchip.runhosts.v$ITER
     87    stderr $mypath/$YEAR/$DATEOBS/log.ckchip.runhosts.v$ITER 
     88
    8389    sprintf FULLDATE "%s/%s/%s" $YEAR $MONTH $DAY
    8490
    85     command check_chip_locations.pl --dateobs $FULLDATE --chiplist gpc1.chips.txt
     91    # this command accesses the Nebulous and GPC databases, so it must run at ITC.
     92    command check_chip_locations.pl --topdir $mypath --dateobs $FULLDATE --chiplist gpc1.chips.txt --stage $ITER
    8693  end
    8794
    88   ## XX delete the page from the book if done?
     95  # mark the entry done, will be deleted above in .load
    8996  task.exit 0
    90     # convert the stdout 'queue' to entries in a book
    91     # fields in the table will become words in the page
    92     # use the queuesize (Nhosts) to track how many jobs are done / to be done
     97    book setword ckchip.book $options:0 pantaskState DONE
    9398    exec update.rawfix.sh $options:0 ckchip.done
    94     book delpage ckchip.book $options:0
    9599  end
    96100
     
    116120end
    117121
     122# option for writing stdout / stderr to a file
     123# queuepush stdout "------- end of stdout ---------"
     124# queuesave stdout $options:0/log.ckchip.v$ITER
     125# queuepush stderr "------- end of stderr ---------"
     126# queuesave stderr $options:0/log.ckchip.v$ITER
Note: See TracChangeset for help on using the changeset viewer.