IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 11, 2011, 2:49:34 PM (15 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/ippTasks/pstamp.pro

    r30446 r30579  
    1818$pstampStopFaulted_DB = 0
    1919
     20# give up on dependents with fault_count >= $PSTAMP_MAX_FAULT_COUNT
     21$PSTAMP_MAX_FAULT_COUNT = 5
     22macro set.max.fault.count
     23    $PSTAMP_MAX_FAULT_COUNT = $1
     24end
     25macro get.max.fault.count
     26    echo maximum fault count: $PSTAMP_MAX_FAULT_COUNT
     27end
     28$POLL_DEP = 500
     29
     30macro set.dependent.poll
     31    $POLL_DEP = $1
     32end
     33macro get.dependent.poll
     34    echo dependent poll limit: $POLL_DEP
     35end
     36
    2037# set PS_DBSERVER if postage stamp database host is not the same as the value for DBSERVER in site.config
    2138# warning: no quotes around the two words. That causes the variable to get passed to pstamptool as one word
     
    137154    end
    138155end
     156
    139157macro pstamp.find.on
    140158    task pstamp.request.find
     
    143161end
    144162macro pstamp.find.off
    145     task pstamp.request.find.load
    146         active false
     163    task pstamp.request.find
     164        active false
     165    end
     166end
     167
     168macro pstamp.dependent.on
     169    task pstamp.dependent.load
     170        active true
     171    end
     172    task pstamp.dependent.run
     173        active true
     174    end
     175end
     176macro pstamp.dependent.off
     177    task pstamp.dependent.load
     178        active false
     179    end
     180    task pstamp.dependent.run
     181        active false
     182    end
     183end
     184
     185
     186macro pstamp.status.on
     187    task pstamp.save.status
     188        active true
     189    end
     190end
     191macro pstamp.status.off
     192    task pstamp.save.status
     193        active false
     194    end
     195end
     196
     197macro pstamp.status.set.exec
     198    task pstamp.save.status
     199        periods -exec $1
    147200    end
    148201end
     
    509562            echo pstamp.job.run task.exit $JOB_ID status: $JOB_STATUS
    510563        end
    511         showcommand failure
     564#        showcommand failure
    512565        process_exit pstampJob $options:0 $JOB_STATUS
    513566    end
     
    593646        add_poll_args run
    594647        add_poll_labels run
    595         command $run
     648        command $run -limit $POLL_DEP
    596649    end
    597650
     
    648701        book getword pstampDependent $pageName outdir     -var OUTDIR
    649702        book getword pstampDependent $pageName need_magic -var NEED_MAGIC
     703        book getword pstampDependent $pageName fault_count -var FAULT_COUNT
    650704        book getword pstampDependent $pageName dbname     -var DBNAME
    651705
     
    666720        stderr $MYLOGFILE
    667721
    668         $run = pstamp_checkdependent.pl --dep_id $DEP_ID --stage_id $STAGE_ID --stage $STAGE --component $COMPONENT --imagedb $IMAGEDB --rlabel $RLABEL $NEED_MAGIC
     722        $run = pstamp_checkdependent.pl --dep_id $DEP_ID --stage_id $STAGE_ID --stage $STAGE --component $COMPONENT --imagedb $IMAGEDB --rlabel $RLABEL $NEED_MAGIC --fault_count $FAULT_COUNT --max_fault_count $PSTAMP_MAX_FAULT_COUNT
    669723
    670724        add_standard_args run
     
    689743            echo pstamp.job.run task.exit $DEP_ID status: $JOB_STATUS
    690744        end
    691         showcommand failure
     745#        showcommand failure
    692746        process_exit pstampDependent $options:0 $JOB_STATUS
    693747    end
     
    905959    end
    906960end
     961
     962task pstamp.save.status
     963    host        local
     964
     965    periods     -poll $LOADPOLL
     966    periods     -exec 90
     967    periods     -timeout 20
     968    npending    1
     969
     970    task.exec
     971        stdout NULL
     972        stderr $LOGSUBDIR/pstamp.save.status.log
     973
     974        $run = pstamp_save_server_status.pl --update-link
     975        command $run
     976    end
     977
     978    task.exit $EXIT_SUCCESS
     979        # echo nothing to do
     980    end
     981
     982    task.exit   default
     983        showcommand failure
     984    end
     985
     986    task.exit   crash
     987        showcommand crash
     988    end
     989
     990    task.exit   timeout
     991        showcommand timeout
     992    end
     993end
Note: See TracChangeset for help on using the changeset viewer.