IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 11, 2011, 4:42:29 PM (15 years ago)
Author:
watersc1
Message:

Caught up with the trunk. Now to look for bugs.

Location:
branches/czw_branch/20101203
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20101203

  • branches/czw_branch/20101203/ippTasks

    • Property svn:mergeinfo deleted
  • branches/czw_branch/20101203/ippTasks/pstamp.pro

    r30586 r30587  
    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
    147     end
    148 end
     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
    149185
    150186macro pstamp.status.on
     
    158194    end
    159195end
     196
    160197macro pstamp.status.set.exec
    161198    task pstamp.save.status
     
    525562            echo pstamp.job.run task.exit $JOB_ID status: $JOB_STATUS
    526563        end
    527         showcommand failure
     564#        showcommand failure
    528565        process_exit pstampJob $options:0 $JOB_STATUS
    529566    end
     
    609646        add_poll_args run
    610647        add_poll_labels run
    611         command $run
     648        command $run -limit $POLL_DEP
    612649    end
    613650
     
    664701        book getword pstampDependent $pageName outdir     -var OUTDIR
    665702        book getword pstampDependent $pageName need_magic -var NEED_MAGIC
     703        book getword pstampDependent $pageName fault_count -var FAULT_COUNT
    666704        book getword pstampDependent $pageName dbname     -var DBNAME
    667705
     
    682720        stderr $MYLOGFILE
    683721
    684         $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
    685723
    686724        add_standard_args run
     
    705743            echo pstamp.job.run task.exit $DEP_ID status: $JOB_STATUS
    706744        end
    707         showcommand failure
     745#        showcommand failure
    708746        process_exit pstampDependent $options:0 $JOB_STATUS
    709747    end
  • branches/czw_branch/20101203/ippTasks/rcserver.pro

    r30586 r30587  
    4040    active false
    4141  end
    42   task rcserver.revert
    43     active false
    44   end
    4542end
    4643
     
    4845  task rcserver.revert
    4946    active true
     47  end
     48end
     49
     50macro rcserver.revert.off
     51  task rcserver.revert
     52    active false
    5053  end
    5154end
  • branches/czw_branch/20101203/ippTasks/survey.pro

    r30586 r30587  
    11351135    end
    11361136   
    1137     echo $run
     1137    # echo $run
    11381138
    11391139    command $run
Note: See TracChangeset for help on using the changeset viewer.