Changeset 37551 for trunk/ippTasks
- Timestamp:
- Nov 3, 2014, 2:41:20 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/addstar.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/addstar.pro
r35305 r37551 52 52 active false 53 53 end 54 task addstar.revert.diff 55 active false 56 end 57 task addstar.revert.fullforce 58 active false 59 end 54 60 end 55 61 … … 65 71 end 66 72 task addstar.revert.skycal 73 active true 74 end 75 task addstar.revert.diff 76 active true 77 end 78 task addstar.revert.fullforce 67 79 active true 68 80 end … … 141 153 $addstar_revert_DB_SSM = 0 142 154 $addstar_revert_DB_SC = 0 155 $addstar_revert_DB_FF = 0 156 $addstar_revert_DB_DF = 0 143 157 144 158 #$LOADEXEC_ADD = 300 … … 275 289 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 276 290 end 291 if ("$STAGE" == "diff") 292 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 293 end 294 if ("$STAGE" == "fullforce") 295 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 296 end 277 297 278 298 … … 293 313 if ("$STAGE" == "skycal") 294 314 $run = $run --stage_id $STAGE_ID 315 end 316 if ("$STAGE" == "diff") 317 $run = $run --stage_id $STAGE_ID --stage_extra1 $STAGE_EXTRA1 318 end 319 if ("$STAGE" == "fullforce") 320 $run = $run --stage_id $STAGE_ID --stage_extra1 $STAGE_EXTRA1 295 321 end 296 322 … … 526 552 end 527 553 end 554 555 556 task addstar.revert.diff 557 host local 558 559 periods -poll 5.0 560 periods -exec 60.0 561 periods -timeout 1200 562 npending 1 563 active false 564 565 stdout NULL 566 stderr $LOGDIR/revert.log 567 568 task.exec 569 if ($LABEL:n == 0) break 570 $run = addtool -revertprocessedexp -stage diff 571 if ($DB:n == 0) 572 option DEFAULT 573 else 574 # save the DB name for the exit tasks 575 option $DB:$addstar_revert_DB_DF 576 $run = $run -dbname $DB:$addstar_revert_DB_DF 577 $addstar_revert_DB_DF ++ 578 if ($addstar_revert_DB_DF >= $DB:n) set addstar_revert_DB_DF = 0 579 end 580 add_poll_labels run 581 command $run 582 end 583 584 # success 585 task.exit 0 586 end 587 588 # locked list 589 task.exit default 590 showcommand failure 591 end 592 593 task.exit crash 594 showcommand crash 595 end 596 597 # operation times out? 598 task.exit timeout 599 showcommand timeout 600 end 601 end 602 603 604 task addstar.revert.fullforce 605 host local 606 607 periods -poll 5.0 608 periods -exec 60.0 609 periods -timeout 1200 610 npending 1 611 active false 612 613 stdout NULL 614 stderr $LOGDIR/revert.log 615 616 task.exec 617 if ($LABEL:n == 0) break 618 $run = addtool -revertprocessedexp -stage fullforce 619 if ($DB:n == 0) 620 option DEFAULT 621 else 622 # save the DB name for the exit tasks 623 option $DB:$addstar_revert_DB_FF 624 $run = $run -dbname $DB:$addstar_revert_DB_FF 625 $addstar_revert_DB_FF ++ 626 if ($addstar_revert_DB_FF >= $DB:n) set addstar_revert_DB_FF = 0 627 end 628 add_poll_labels run 629 command $run 630 end 631 632 # success 633 task.exit 0 634 end 635 636 # locked list 637 task.exit default 638 showcommand failure 639 end 640 641 task.exit crash 642 showcommand crash 643 end 644 645 # operation times out? 646 task.exit timeout 647 showcommand timeout 648 end 649 end
Note:
See TracChangeset
for help on using the changeset viewer.
