IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

adding error states

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.