IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23945


Ignore:
Timestamp:
Apr 21, 2009, 5:47:21 PM (17 years ago)
Author:
Paul Price
Message:

Attempt to fix ticket 1223: change database state when crash detected.

Location:
trunk/ippTasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/chip.pro

    r23549 r23945  
    202202  # locked list
    203203  task.exit    crash
    204     showcommand crash
    205     echo "hostname: $JOB_HOSTNAME"
    206     book setword chipPendingImfile $options:0 pantaskState CRASH
     204    ### Getting a lot of chip crashes (no idea why), so remove verbosity for now
     205    #showcommand crash
     206    #echo "hostname: $JOB_HOSTNAME"
     207
     208    # Set a fault code in the database
     209    !chiptool -addprocessedimfile -dbname $DBNAME -chip_id $CHIP_ID -class_id $CLASS_ID -fault $EXIT_CRASH_ERR
     210    process_exit chipPendingImfile $options:0 $EXIT_CRASH_ERR
    207211  end
    208212
  • trunk/ippTasks/pantasks.pro

    r23916 r23945  
    2424$EXIT_PROG_ERR    = 4
    2525$EXIT_DATA_ERR    = 5
     26$EXIT_CRASH_ERR   = 256
    2627
    2728# DB lists the database names in use; the default ipprc database
     
    377378  end
    378379
     380  # failure related to pantasks
     381  if ($exitCode == $EXIT_CRASH_ERR)
     382    # stop
     383    showcommand "crash error"
     384    book setword $bookName $pageName pantaskState CRASH_ERR
     385    return
     386  end
     387
    379388  # any other exit status
    380389  showcommand failure
     
    397406    book delpage $1 -key pantaskState CONFIG_ERR
    398407    book delpage $1 -key pantaskState UNKNOWN_ERR
     408    book delpage $1 -key pantaskState CRASH_ERR
    399409  end
    400410end
Note: See TracChangeset for help on using the changeset viewer.