Changeset 30579 for branches/eam_branches/ipp-20101205/ippTasks/pstamp.pro
- Timestamp:
- Feb 11, 2011, 2:49:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/ippTasks/pstamp.pro
r30446 r30579 18 18 $pstampStopFaulted_DB = 0 19 19 20 # give up on dependents with fault_count >= $PSTAMP_MAX_FAULT_COUNT 21 $PSTAMP_MAX_FAULT_COUNT = 5 22 macro set.max.fault.count 23 $PSTAMP_MAX_FAULT_COUNT = $1 24 end 25 macro get.max.fault.count 26 echo maximum fault count: $PSTAMP_MAX_FAULT_COUNT 27 end 28 $POLL_DEP = 500 29 30 macro set.dependent.poll 31 $POLL_DEP = $1 32 end 33 macro get.dependent.poll 34 echo dependent poll limit: $POLL_DEP 35 end 36 20 37 # set PS_DBSERVER if postage stamp database host is not the same as the value for DBSERVER in site.config 21 38 # warning: no quotes around the two words. That causes the variable to get passed to pstamptool as one word … … 137 154 end 138 155 end 156 139 157 macro pstamp.find.on 140 158 task pstamp.request.find … … 143 161 end 144 162 macro pstamp.find.off 145 task pstamp.request.find.load 146 active false 163 task pstamp.request.find 164 active false 165 end 166 end 167 168 macro pstamp.dependent.on 169 task pstamp.dependent.load 170 active true 171 end 172 task pstamp.dependent.run 173 active true 174 end 175 end 176 macro pstamp.dependent.off 177 task pstamp.dependent.load 178 active false 179 end 180 task pstamp.dependent.run 181 active false 182 end 183 end 184 185 186 macro pstamp.status.on 187 task pstamp.save.status 188 active true 189 end 190 end 191 macro pstamp.status.off 192 task pstamp.save.status 193 active false 194 end 195 end 196 197 macro pstamp.status.set.exec 198 task pstamp.save.status 199 periods -exec $1 147 200 end 148 201 end … … 509 562 echo pstamp.job.run task.exit $JOB_ID status: $JOB_STATUS 510 563 end 511 showcommand failure564 # showcommand failure 512 565 process_exit pstampJob $options:0 $JOB_STATUS 513 566 end … … 593 646 add_poll_args run 594 647 add_poll_labels run 595 command $run 648 command $run -limit $POLL_DEP 596 649 end 597 650 … … 648 701 book getword pstampDependent $pageName outdir -var OUTDIR 649 702 book getword pstampDependent $pageName need_magic -var NEED_MAGIC 703 book getword pstampDependent $pageName fault_count -var FAULT_COUNT 650 704 book getword pstampDependent $pageName dbname -var DBNAME 651 705 … … 666 720 stderr $MYLOGFILE 667 721 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 669 723 670 724 add_standard_args run … … 689 743 echo pstamp.job.run task.exit $DEP_ID status: $JOB_STATUS 690 744 end 691 showcommand failure745 # showcommand failure 692 746 process_exit pstampDependent $options:0 $JOB_STATUS 693 747 end … … 905 959 end 906 960 end 961 962 task 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 993 end
Note:
See TracChangeset
for help on using the changeset viewer.
