Changeset 31587 for branches/eam_branches/ipp-20110505/ippTasks/lap.pro
- Timestamp:
- May 29, 2011, 11:26:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110505/ippTasks/lap.pro
r31454 r31587 17 17 18 18 macro lap.show.books 19 echo "lapNewRuns" 19 20 book listbook lapNewRuns 21 echo "lapRunRuns" 20 22 book listbook lapRunRuns 23 echo "lapDoneRuns" 21 24 book listbook lapDoneRuns 25 echo "lapFullRuns" 22 26 book listbook lapFullRuns 27 end 28 29 macro lap.clear.books 30 book init lapNewRuns 31 book init lapRunRuns 32 book init lapFullRuns 33 book init lapDoneRuns 23 34 end 24 35 … … 36 47 active true 37 48 end 38 task lap.cleanup.load39 active true40 end41 task lap.cleanup.run42 active true43 end44 49 end 45 50 … … 57 62 active false 58 63 end 59 task lap.cleanup.load 60 active false 61 end 62 task lap.cleanup.run 64 end 65 66 macro lap.debug.mode 67 task lap.initial.load 68 active true 69 end 70 task lap.initial.run 71 active false 72 end 73 task lap.monitor.load 74 active true 75 end 76 task lap.monitor.run 63 77 active false 64 78 end … … 156 170 # success 157 171 task.exit 0 158 # book delpage lapNewRuns $options:0159 172 ipptool2book stdout lapNewRuns -uniq -key lap_id -setword dbname $options:0 -setword pantaskState INIT 160 173 174 process_cleanup lapNewRuns 175 161 176 if ($VERBOSE > 2) 162 177 book listbook lapNewRuns … … 181 196 periods -exec $LOADEXEC 182 197 periods -timeout 600 198 active false 183 199 # This can probably be increased and spread over hosts in the future. 184 200 npending 1 … … 193 209 194 210 195 book getpage lapNewRuns $lap_NewPage -var lapNewPageName211 book getpage lapNewRuns 0 -var lapNewPageName -key pantaskState INIT 196 212 197 213 $lap_NewPage ++ 198 214 if ($lap_NewPage >= $N) set lap_NewPage = 0 199 215 200 201 216 if ("$lapNewPageName" == "NULL") break 217 218 202 219 203 220 book setword lapNewRuns $lapNewPageName pantaskState RUN … … 205 222 book getword lapNewRuns $lapNewPageName dbname -var DBNAME 206 223 224 option $LAP_ID 225 207 226 $run = lap_science.pl --chip_mode --dbname $DBNAME --lap_id $LAP_ID 208 209 command $run 210 211 end 212 213 # success 214 task.exit 0 215 # book delpage lapNewRuns $options:0 216 # ipptool2book stdout lapNewRuns -uniq -key lap_id 217 227 228 command $run 229 230 end 231 232 # success 233 task.exit 0 234 process_exit lapNewRuns $options:0 0 218 235 if ($VERBOSE > 2) 219 236 book listbook lapNewRuns … … 222 239 # locked list 223 240 task.exit default 224 showcommand failure 225 end 226 task.exit crash 227 showcommand crash 228 end 229 #operation times out? 230 task.exit timeout 241 process_exit lapNewRuns $options:0 0 242 showcommand failure 243 end 244 task.exit crash 245 process_exit lapNewRuns $options:0 0 246 showcommand crash 247 end 248 #operation times out? 249 task.exit timeout 250 process_exit lapNewRuns $options:0 0 231 251 showcommand timeout 232 252 end … … 267 287 268 288 add_poll_labels run 269 # echo $run 270 command $run 271 end 272 # success 273 task.exit 0 274 # book delpage lapRunRuns $options:0 289 command $run 290 end 291 # success 292 task.exit 0 275 293 ipptool2book stdout lapRunRuns -uniq -key lap_id -setword dbname $options:0 -setword pantaskState INIT 294 295 process_cleanup lapRunRuns 276 296 277 297 if ($VERBOSE > 2) … … 297 317 periods -exec $LOADEXEC 298 318 periods -timeout 600 319 active false 299 320 # This can probably be increased and spread over hosts in the future. 300 321 npending 1 … … 306 327 book npages lapRunRuns -var N 307 328 308 # echo $N $NETWORK309 329 if ($N == 0) break 310 330 if ($NETWORK == 0) break 311 331 312 332 313 book getpage lapRunRuns $lap_RunPage -var lapRunPageName333 book getpage lapRunRuns 0 -var lapRunPageName -key pantaskState INIT 314 334 315 335 $lap_RunPage ++ 316 336 if ($lap_RunPage >= $N) set lap_RunPage = 0 317 337 318 # echo $lapRunPageName319 338 if ("$lapRunPageName" == "NULL") break 320 339 … … 323 342 book getword lapRunRuns $lapRunPageName dbname -var DBNAME 324 343 344 option $LAP_ID 345 325 346 $run = lap_science.pl --monitor_mode --dbname $DBNAME --lap_id $LAP_ID 326 347 … … 331 352 # success 332 353 task.exit 0 333 # book delpage lapRunRuns $options:0 334 # ipptool2book stdout lapRunRuns -uniq -key lap_id 335 336 if ($VERBOSE > 2) 354 process_exit lapRunRuns $options:0 0 355 if ($VERBOSE > 2) 356 337 357 book listbook lapRunRuns 338 358 end … … 340 360 # locked list 341 361 task.exit default 342 showcommand failure 343 end 344 task.exit crash 345 showcommand crash 346 end 347 #operation times out? 348 task.exit timeout 362 process_exit lapRunRuns $options:0 0 363 showcommand failure 364 end 365 task.exit crash 366 process_exit lapRunRuns $options:0 0 367 showcommand crash 368 end 369 #operation times out? 370 task.exit timeout 371 process_exit lapRunRuns $options:0 0 349 372 showcommand timeout 350 373 end … … 358 381 periods -exec $LOADEXEC 359 382 periods -timeout 30 383 active false 360 384 npending 1 361 385 … … 390 414 ipptool2book stdout lapDoneRuns -uniq -key lap_id -setword dbname $options:0 -setword pantaskState INIT 391 415 416 process_cleanup lapDoneRuns 392 417 if ($VERBOSE > 2) 393 418 book listbook lapRuns … … 412 437 periods -exec $LOADEXEC 413 438 periods -timeout 600 439 active false 414 440 # This can probably be increased and spread over hosts in the future. 415 441 npending 1 … … 424 450 425 451 426 book getpage lapDoneRuns $lap_DonePage -var lapDonePageName452 book getpage lapDoneRuns 0 -var lapDonePageName -key pantaskState INIT 427 453 428 454 $lap_DonePage ++ … … 435 461 book getword lapDoneRuns $lapDonePageName dbname -var DBNAME 436 462 463 option $LAP_ID 437 464 $run = lap_science.pl --cleanup_mode --dbname $DBNAME --lap_id $LAP_ID 438 465 … … 443 470 # success 444 471 task.exit 0 445 # ipptool2book stdout lapDoneRuns -uniq -key lap_id 446 472 process_exit lapDoneRuns $options:0 0 447 473 if ($VERBOSE > 2) 448 474 book listbook lapDoneRuns … … 451 477 # locked list 452 478 task.exit default 453 showcommand failure 454 end 455 task.exit crash 456 showcommand crash 457 end 458 #operation times out? 459 task.exit timeout 460 showcommand timeout 461 end 462 end 479 process_exit lapDoneRuns $options:0 0 480 showcommand failure 481 end 482 task.exit crash 483 process_exit lapDoneRuns $options:0 0 484 showcommand crash 485 end 486 #operation times out? 487 task.exit timeout 488 process_exit lapDoneRuns $options:0 0 489 showcommand timeout 490 end 491 end
Note:
See TracChangeset
for help on using the changeset viewer.
