IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 6, 2011, 2:34:55 PM (15 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/pstamp/scripts/pstampstopfaulted

    r29428 r30812  
     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 $*
     13cmd="pstamptool -stopdependentjob -set_fault $fault_code $*"
     14echo $cmd
     15$cmd
    1316
    1417echo stopping faulted jobs
    15 pstamptool -updatejob -state run -set_state stop -set_fault $fault_code -fault_count $fault_count $*
     18cmd="pstamptool -updatejob -state run -set_state stop -set_fault $fault_code $*"
     19echo $cmd
     20$cmd
Note: See TracChangeset for help on using the changeset viewer.