IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11059


Ignore:
Timestamp:
Jan 11, 2007, 5:22:43 PM (19 years ago)
Author:
eugene
Message:

adding error states

Location:
branches/eam_branch_00/ippTasks
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_00/ippTasks/notes.txt

    r9032 r11059  
     1
     22007.01.08
     3
     4  I have updated pantasks to used named tags in named groups to make
     5  life much easier when changing the schema of the db tables.  The
     6  function ipptool2book convernts the output from an ippTool query in
     7  the form of a set of metadata structures (saved in stdout) into a
     8  book format.
     9
     10  dettool -tonormalizedstat     DetrendNormStat
     11  dettool -tonormalize          DetrendNorm
     12  dettool -tonormalizedexp      DetrendNormExp
     13  dettool -toprocessedimfile    DetrendProcessImfiles
     14  dettool -toprocessedexp       DetrendProcessExposures
     15  dettool -residdetrun          DetrendRejectExp
     16  dettool -toresidimfile        DetrendResidImfiles
     17  dettool -toresidexp           DetrendResidExposures
     18  dettool -tostacked            DetrendStackClass
     19  p0tool -pendingimfile         Phase0Imfiles
     20  p0tool -pendingexp            Phase0Exposures
     21  p2tool -pendingimfile         Phase2Imfiles
     22  p3tool -pendingexp            Phase3Exposures
    123
    2242006.08.28
  • branches/eam_branch_00/ippTasks/pantasks.pro

    r11019 r11059  
    1717$runpoll = 0.5
    1818$runexec = 1
     19
     20$EXIT_SUCCESS     = 0
     21$EXIT_UNKNOWN_ERR = 1
     22$EXIT_SYS_ERR     = 2
     23$EXIT_CONFIG_ERR  = 3
     24$EXIT_PROG_ERR    = 4
     25$EXIT_DATA_ERR    = 5
    1926
    2027macro init.simtest
     
    8693    if ($0 == 2)
    8794      echo "$1 for: $command"
     95      echo "job exit status: $JOB_STATUS"
     96      echo "job dtime: $JOB_DTIME"
    8897    else
    8998      echo "command: $command"
  • branches/eam_branch_00/ippTasks/phase0.pro

    r11012 r11059  
    3838  periods      -timeout 30
    3939
    40   stdout $LOGSUBDIR/phase0.imfile.log
     40  # XXX provide a special word (ie NULL) that silently drops stdout, stderr?
     41  stdout NULL
    4142  stderr $LOGSUBDIR/phase0.imfile.log
    4243
     
    4647
    4748  # success
    48   task.exit    0
     49  task.exit    $EXIT_SUCCESS
    4950    # convert 'stdout' to book format
    5051    ipptool2book stdout Phase0Imfiles -key exp_tag -uniq
     
    5556    # delete existing entries which are DONE
    5657    book delpage Phase0Imfiles -key state DONE
     58    echo "p0tool -pendingimfile dtime: $JOB_DTIME"
    5759  end
    5860
     
    8486
    8587    book setword Phase0Imfiles $pageName state RUN
     88    # Phase0Imfiles->pageName->state = RUN
     89
    8690    book getword Phase0Imfiles $pageName exp_tag -var EXP_TAG
     91    # $EXP_TAG = Phase0Imfiles->pageName->exp_tag
    8792    book getword Phase0Imfiles $pageName class -var CLASS
    8893    book getword Phase0Imfiles $pageName class_id -var CLASS_ID
     
    118123    # phase0_imfile.pl updates DB tables, here we just update the page
    119124    book setword Phase0Imfiles $options:0 state DONE
     125    # equiv to: Phase0Imfiles->pageName->state = DONE
    120126  end
    121127
     
    158164    # delete existing entries which are DONE
    159165    book delpage Phase0Exposures -key state DONE
     166    echo "p0tool -pendingexp dtime: $JOB_DTIME"
    160167  end
    161168
     
    222229  # default exit status
    223230  task.exit    default
    224     showcommand
     231    showcommand failure
    225232    book setword Phase0Exposures $options:0 state FAIL
    226233  end
     
    228235  # operation times out?
    229236  task.exit    timeout
    230     showcommand
     237    showcommand timeout
    231238    book setword Phase0Exposures $options:0 state TIMEOUT
    232239  end
  • branches/eam_branch_00/ippTasks/phase2.pro

    r11012 r11059  
    11## this file contains the tasks for running the phase 0 stage
    2 ## these tasks use the book p2PendingImfile
     2## these tasks use the book Phase2Imfiles
    33
    44if ($?network == 0)
     
    2020exec mkdir -p $LOGSUBDIR
    2121
    22 book init p2PendingImfile
     22book init Phase2Imfiles
    2323
    2424macro phase2.status
    25   book listbook p2PendingImfile
     25  book listbook Phase2Imfiles
    2626end
    2727
    2828# select images ready for phase2 analysis
    29 # new entries are added to p2PendingImfile
     29# new entries are added to Phase2Imfiles
    3030# skip already-present entries
    3131task           phase2.imfile.load
     
    4646  task.exit    0
    4747    # convert 'stdout' to book format
    48     ipptool2book stdout p2PendingImfile -key exp_tag:class_id -uniq
     48    ipptool2book stdout Phase2Imfiles -key exp_tag:class_id -uniq
    4949    if ($VERBOSE > 2)
    50       book listbook p2PendingImfile
     50      book listbook Phase2Imfiles
    5151    end
    5252
    5353    # delete existing entries which are DONE
    54     book delpage p2PendingImfile -key state DONE
     54    book delpage Phase2Imfiles -key state DONE
    5555  end
    5656
     
    7373
    7474  task.exec
    75     book npages p2PendingImfile -var N
     75    book npages Phase2Imfiles -var N
    7676    if ($N == 0) break
    7777    if ($network == 0) break
    7878   
    79     # look for new images in p2PendingImfile (state == NULL)
    80     book getpage p2PendingImfile 0 -var pageName -key state NULL
     79    # look for new images in Phase2Imfiles (state == NULL)
     80    book getpage Phase2Imfiles 0 -var pageName -key state NULL
    8181    if ($pageName == NULL) break
    8282
    83     book setword p2PendingImfile $pageName state RUN
    84     book getword p2PendingImfile $pageName camera -var CAMERA
    85     book getword p2PendingImfile $pageName exp_tag -var EXP_TAG
    86     book getword p2PendingImfile $pageName class_id -var CLASS_ID
    87     book getword p2PendingImfile $pageName uri -var URI
     83    book setword Phase2Imfiles $pageName state RUN
     84    book getword Phase2Imfiles $pageName camera -var CAMERA
     85    book getword Phase2Imfiles $pageName exp_tag -var EXP_TAG
     86    book getword Phase2Imfiles $pageName class_id -var CLASS_ID
     87    book getword Phase2Imfiles $pageName uri -var URI
    8888
    8989    # specify choice of remote host
     
    118118  task.exit 0
    119119    # phase2.pl updates DB tables, here we just update the page
    120     book setword p2PendingImfile $options:0 state DONE
     120    book setword Phase2Imfiles $options:0 state DONE
    121121  end
    122122
     
    124124  task.exit    default
    125125    showcommand failure
    126     book setword p2PendingImfile $options:0 state FAIL
     126    book setword Phase2Imfiles $options:0 state FAIL
    127127  end
    128128
     
    130130  task.exit    timeout
    131131    showcommand timeout
    132     book setword p2PendingImfile $options:0 state TIMEOUT
     132    book setword Phase2Imfiles $options:0 state TIMEOUT
    133133  end
    134134end
Note: See TracChangeset for help on using the changeset viewer.