Changeset 33030 for trunk/ippTasks/addstar.pro
- Timestamp:
- Dec 27, 2011, 3:09:17 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTasks/addstar.pro (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/haf_add201112 (added) merged: 32980-32981,32984-32987,32989,32992,33003,33005,33008-33009,33012,33017-33018,33021-33023,33027
- Property svn:mergeinfo changed
-
trunk/ippTasks/addstar.pro
r32832 r33030 53 53 54 54 macro addstar.revert.off 55 task addstar.revert 55 task addstar.revert.cam 56 active false 57 end 58 task addstar.revert.stack 59 active false 60 end 61 task addstar.revert.staticsky 62 active false 63 end 64 task addstar.revert.staticsky_multi 56 65 active false 57 66 end 58 67 end 59 68 macro addstar.revert.on 60 task addstar.revert 69 task addstar.revert.cam 70 active true 71 end 72 task addstar.revert.stack 73 active true 74 end 75 task addstar.revert.staticsky_multi 76 active true 77 end 78 task addstar.revert.staticsky 61 79 active true 62 80 end … … 65 83 66 84 # this variable will cycle through the known database names 67 $addstar_DB = 0 68 $addstar_revert_DB = 0 85 $addstar_DB = 0 86 #this may not work for more databases (addstar) will do that later) 87 $addstar_revert_DB_C = 0 88 $addstar_revert_DB_S = 0 89 $addstar_revert_DB_SS = 0 90 $addstar_revert_DB_SSM = 0 69 91 70 92 … … 318 340 book getword addPendingExp $pageName stage_extra1 -var STAGE_EXTRA1 319 341 book getword addPendingExp $pageName stageroot -var STAGEROOT 320 book getword addPendingExp $pageName stage -var STAGE 342 book getword addPendingExp $pageName stage -var STAGE 343 book getword addPendingExp $pageName stage_id -var STAGE_ID 321 344 book getword addPendingExp $pageName workdir -var WORKDIR_TEMPLATE 322 345 book getword addPendingExp $pageName reduction -var REDUCTION … … 367 390 if ("$STAGE" == "staticsky_multi") 368 391 $run = $run --multi_num $STAGE_EXTRA1 392 end 393 if ("$STAGE" == "cam") 394 $run = $run --stage_id $STAGE_ID 369 395 end 370 396 if ("$IMAGE_ONLY" == "T") … … 411 437 end 412 438 413 task addstar.revert 439 task addstar.revert.cam 414 440 host local 415 441 … … 425 451 task.exec 426 452 if ($LABEL:n == 0) break 427 $run = addtool -revertprocessedexp 428 if ($DB:n == 0) 429 option DEFAULT 430 else 431 # save the DB name for the exit tasks 432 option $DB:$addstar_revert_DB 433 $run = $run -dbname $DB:$addstar_revert_DB 434 $addstar_revert_DB ++435 if ($addstar_revert_DB >= $DB:n) set addstar_revert_DB= 0453 $run = addtool -revertprocessedexp -stage cam 454 if ($DB:n == 0) 455 option DEFAULT 456 else 457 # save the DB name for the exit tasks 458 option $DB:$addstar_revert_DB_C 459 $run = $run -dbname $DB:$addstar_revert_DB_C 460 $addstar_revert_DB_C ++ 461 if ($addstar_revert_DB_C >= $DB:n) set addstar_revert_DB_C = 0 436 462 end 437 463 add_poll_labels run … … 457 483 end 458 484 end 485 task addstar.revert.stack 486 host local 487 488 periods -poll 5.0 489 periods -exec 60.0 490 periods -timeout 1200 491 npending 1 492 active false 493 494 stdout NULL 495 stderr $LOGDIR/revert.log 496 497 task.exec 498 if ($LABEL:n == 0) break 499 $run = addtool -revertprocessedexp -stage stack 500 if ($DB:n == 0) 501 option DEFAULT 502 else 503 # save the DB name for the exit tasks 504 option $DB:$addstar_revert_DB_S 505 $run = $run -dbname $DB:$addstar_revert_DB_S 506 $addstar_revert_DB_S ++ 507 if ($addstar_revert_DB_S >= $DB:n) set addstar_revert_DB_S = 0 508 end 509 add_poll_labels run 510 command $run 511 end 512 513 # success 514 task.exit 0 515 end 516 517 # locked list 518 task.exit default 519 showcommand failure 520 end 521 522 task.exit crash 523 showcommand crash 524 end 525 526 # operation times out? 527 task.exit timeout 528 showcommand timeout 529 end 530 end 531 task addstar.revert.staticsky 532 host local 533 534 periods -poll 5.0 535 periods -exec 60.0 536 periods -timeout 1200 537 npending 1 538 active false 539 540 stdout NULL 541 stderr $LOGDIR/revert.log 542 543 task.exec 544 if ($LABEL:n == 0) break 545 $run = addtool -revertprocessedexp -stage staticsky 546 if ($DB:n == 0) 547 option DEFAULT 548 else 549 # save the DB name for the exit tasks 550 option $DB:$addstar_revert_DB_SS 551 $run = $run -dbname $DB:$addstar_revert_DB_SS 552 $addstar_revert_DB_SS ++ 553 if ($addstar_revert_DB_SS >= $DB:n) set addstar_revert_DB_SS = 0 554 end 555 add_poll_labels run 556 command $run 557 end 558 559 # success 560 task.exit 0 561 end 562 563 # locked list 564 task.exit default 565 showcommand failure 566 end 567 568 task.exit crash 569 showcommand crash 570 end 571 572 # operation times out? 573 task.exit timeout 574 showcommand timeout 575 end 576 end 577 task addstar.revert.staticsky_multi 578 host local 579 580 periods -poll 5.0 581 periods -exec 60.0 582 periods -timeout 1200 583 npending 1 584 active false 585 586 stdout NULL 587 stderr $LOGDIR/revert.log 588 589 task.exec 590 if ($LABEL:n == 0) break 591 $run = addtool -revertprocessedexp -stage staticsky_multi 592 if ($DB:n == 0) 593 option DEFAULT 594 else 595 # save the DB name for the exit tasks 596 option $DB:$addstar_revert_DB_SSM 597 $run = $run -dbname $DB:$addstar_revert_DB_SSM 598 $addstar_revert_DB_SSM ++ 599 if ($addstar_revert_DB_SSM >= $DB:n) set addstar_revert_DB_SSM = 0 600 end 601 add_poll_labels run 602 command $run 603 end 604 605 # success 606 task.exit 0 607 end 608 609 # locked list 610 task.exit default 611 showcommand failure 612 end 613 614 task.exit crash 615 showcommand crash 616 end 617 618 # operation times out? 619 task.exit timeout 620 showcommand timeout 621 end 622 end
Note:
See TracChangeset
for help on using the changeset viewer.
