IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2007, 3:05:56 PM (20 years ago)
Author:
eugene
Message:

using process_exit to handle error states, adding ipp_filename.pl and OUTPATH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_00/ippTasks/phase3.pro

    r11012 r11109  
    11## this file contains the tasks for running the phase 3 stage
    2 ## these tasks use the book Phase3Exposures
     2## these tasks use the book p3PendingExp
    33
    44if ($?network == 0)
     
    2020exec mkdir -p $LOGSUBDIR
    2121
    22 book init Phase3Exposures
     22book init p3PendingExp
    2323
    2424macro phase3.status
    25   book listbook Phase3Exposures
     25  book listbook p3PendingExp
    2626end
    2727
    2828# select images ready for phase3 analysis
    29 # new entries are added to Phase3Exposures
     29# new entries are added to p3PendingExp
    3030# skip already-present entries
    3131task           phase3.exp.load
     
    4646  task.exit    0
    4747    # convert 'stdout' to book format
    48     ipptool2book stdout Phase3Exposures -key exp_tag -uniq
     48    ipptool2book stdout p3PendingExp -key exp_tag -uniq
    4949    if ($VERBOSE > 2)
    50       book listbook Phase3Exposures
     50      book listbook p3PendingExp
    5151    end
    5252
    5353    # delete existing entries which are DONE
    54     book delpage Phase3Exposures -key state DONE
     54    book delpage p3PendingExp -key state DONE
    5555  end
    5656
     
    7373
    7474  task.exec
    75     book npages Phase3Exposures -var N
     75    book npages p3PendingExp -var N
    7676    if ($N == 0) break
    7777    if ($network == 0) break
    7878   
    79     # look for new images in Phase3Exposures (state == NULL)
    80     book getpage Phase3Exposures 0 -var pageName -key state NULL
     79    # look for new images in p3PendingExp (state == NULL)
     80    book getpage p3PendingExp 0 -var pageName -key state NULL
    8181    if ($pageName == NULL) break
    8282
    83     book setword Phase3Exposures $pageName state RUN
    84     book getword Phase3Exposures $pageName camera -var CAMERA
    85     book getword Phase3Exposures $pageName exp_tag -var EXP_TAG
     83    book setword p3PendingExp $pageName state RUN
     84    book getword p3PendingExp $pageName camera -var CAMERA
     85    book getword p3PendingExp $pageName exp_tag -var EXP_TAG
    8686
    8787    # specify choice of remote host:(need to choose based on chips)
     
    113113  task.exit 0
    114114    # phase3exp.pl updates DB tables, here we just update the page
    115     book setword Phase3Exposures $options:0 state DONE
     115    book setword p3PendingExp $options:0 state DONE
    116116  end
    117117
     
    119119  task.exit    default
    120120    showcommand failure
    121     book setword Phase3Exposures $options:0 state FAIL
     121    book setword p3PendingExp $options:0 state FAIL
    122122  end
    123123
     
    125125  task.exit    timeout
    126126    showcommand timeout
    127     book setword Phase3Exposures $options:0 state TIMEOUT
     127    book setword p3PendingExp $options:0 state TIMEOUT
    128128  end
    129129end
Note: See TracChangeset for help on using the changeset viewer.