IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

add macro to control setting of maximum fault count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.