Changeset 34041 for branches/meh_branches/ppstack_test/ippTasks/pstamp.pro
- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTasks/pstamp.pro (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippTasks/pstamp.pro
r33415 r34041 13 13 $pstampFin_DB = 0 14 14 $pstampRev_DB = 0 15 $pstampRevReq_DB = 0 15 16 $pstampDep_DB = 0 16 17 $pstampRevDep_DB = 0 … … 117 118 118 119 macro pstamp.revert.on 120 task pstamp.request.revert 121 active true 122 end 119 123 task pstamp.job.revert 120 124 active true … … 128 132 end 129 133 macro pstamp.revert.off 134 task pstamp.request.revert 135 active false 136 end 130 137 task pstamp.job.revert 131 138 active false … … 200 207 end 201 208 end 209 210 echo DEFINING PLABEL stuff 211 # keep a separate list of labels for request parsing 212 if ($?PLABEL:n == 0) set PLABEL:n = 0 213 set PLABEL:n = 0 214 215 macro add.parse.label 216 if ($0 != 2) 217 echo "USAGE: add.parse.label (label)" 218 break 219 end 220 if ($?PLABEL:n == 0) 221 list PLABEL -add $1 222 return 223 end 224 225 local found 226 $found = 0 227 for i 0 $PLABEL:n 228 if ($PLABEL:$i == $1) 229 $found = 1 230 echo "$PLABEL:$i set" 231 last 232 end 233 end 234 235 if ($found == 0) 236 list PLABEL -add $1 237 end 238 end 239 240 241 macro del.parse.label 242 if ($0 != 2) 243 echo "USAGE: del.parse.label (label)" 244 break 245 end 246 if ($?PLABEL:n == 0) 247 return 248 end 249 250 list PLABEL -del $1 251 end 252 253 macro show.parse.labels 254 if ($0 != 1) 255 echo "USAGE: show.parse.labels" 256 break 257 end 258 if ($?PLABEL:n == 0) 259 echo "no labels defined" 260 end 261 if ($PLABEL:n == 0) 262 echo "no labels defined" 263 end 264 265 local i 266 for i 0 $PLABEL:n 267 echo $PLABEL:$i 268 end 269 end 270 271 macro add_parse_labels 272 if ($0 != 2) 273 echo "Must pass in the command of interest, and this function will supplement" 274 stop 275 end 276 277 local command i 278 279 $command = $$1 280 281 # Only process the data with the specified label. 282 for i 0 $PLABEL:n 283 $command = $command -label $PLABEL:$i 284 end 285 286 $$1 = $command 287 end 288 289 echo DONE defineing plabel stuf 202 290 203 291 task pstamp.request.find … … 261 349 end 262 350 add_poll_args run 263 add_poll_labels run 351 # add_poll_labels run 352 add_parse_labels run 264 353 # limit number of requests in the queue to avoid blocking everything 265 354 # when jobs take an infinite amount of time to parse … … 580 669 end 581 670 671 task pstamp.request.revert 672 host local 673 674 periods -poll $LOADPOLL 675 periods -exec 1200 676 periods -timeout 20 677 npending 1 678 679 task.exec 680 stdout NULL 681 stderr $LOGSUBDIR/pstamp.request.revert.log 682 $run = pstamptool -revertreq 683 if ($DB:n == 0) 684 option DEFAULT 685 else 686 $run = $run $PS_DBSERVER -dbname $DB:$pstampRevReq_DB 687 $pstampRevReq_DB ++ 688 if ($pstampRevReq_DB >= $DB:n) set pstampRevReq_DB = 0 689 end 690 add_poll_args run 691 add_poll_labels run 692 command $run 693 end 694 695 task.exit $EXIT_SUCCESS 696 # nothing to do 697 end 698 699 task.exit default 700 showcommand failure 701 end 702 703 task.exit crash 704 showcommand crash 705 end 706 707 task.exit timeout 708 showcommand timeout 709 end 710 end 582 711 task pstamp.job.revert 583 712 host local … … 961 1090 962 1091 periods -poll $LOADPOLL 963 periods -exec 90964 periods -timeout 201092 periods -exec 60 1093 periods -timeout 120 965 1094 npending 1 966 1095
Note:
See TracChangeset
for help on using the changeset viewer.
