IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30792


Ignore:
Timestamp:
Mar 4, 2011, 12:22:41 PM (15 years ago)
Author:
bills
Message:

add macro to control setting of maximum fault count

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r30567 r30792  
    1919
    2020# give up on dependents with fault_count >= $PSTAMP_MAX_FAULT_COUNT
    21 $PSTAMP_MAX_FAULT_COUNT = 5
     21$PSTAMP_MAX_FAULT_COUNT = 3
    2222macro set.max.fault.count
    2323    $PSTAMP_MAX_FAULT_COUNT = $1
     
    928928
    929929    task.exec
     930        stdout $LOGSUBDIR/pstamp.stopfaulted.log
    930931        stderr $LOGSUBDIR/pstamp.stopfaulted.log
    931         stderr $LOGSUBDIR/pstamp.stopfaulted.log
    932         $run = pstampstopfaulted
     932        $run = pstampstopfaulted $PSTAMP_MAX_FAULT_COUNT
    933933        if ($DB:n == 0)
    934934            option DEFAULT
  • trunk/pstamp/scripts/pstampstopfaulted

    r29428 r30792  
     1#!/bin/bash
     2#
     3# script executed by the task pstamp.stopfaulted to stop proceessing of jobs
     4# and dependents that have fault_count >= some maximum value. That value is expected
     5# to be passed in as an argument otherwise the default in pstamptool is used
     6# All arguments are passed to pstamptool
    17
    2 # script executed by the task pstamp.stopfaulted to stop proceessing of jobs
    3 # and dependents that have faulted 5 or more times
    4 # all arguments to this script are passed to pstamptool
    5 
    6 # 25 is PSTAMP_NOT_AVAILABLE
     8# note: 25 is PSTAMP_NOT_AVAILABLE
    79fault_code=25
    8 fault_count=3
    910
    1011date
    1112echo stopping faulted dependent jobs
    12 pstamptool -stopdependentjob -set_fault $fault_code -fault_count $fault_count $*
     13pstamptool -stopdependentjob -set_fault $fault_code $*
    1314
    1415echo stopping faulted jobs
    15 pstamptool -updatejob -state run -set_state stop -set_fault $fault_code -fault_count $fault_count $*
     16pstamptool -updatejob -state run -set_state stop -set_fault $fault_code $*
Note: See TracChangeset for help on using the changeset viewer.