Changeset 28557 for trunk/ippTasks/detrend.norm.pro
- Timestamp:
- Jun 30, 2010, 10:04:25 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.norm.pro (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.norm.pro
r23480 r28557 64 64 end 65 65 66 macro detnorm.revert.off 67 task detrend.norm.revert 68 active false 69 end 70 task detrend.normexp.revert 71 active false 72 end 73 task detrend.normstat.revert 74 active false 75 end 76 end 77 78 macro detnorm.revert.on 79 task detrend.norm.revert 80 active true 81 end 82 task detrend.normexp.revert 83 active true 84 end 85 task detrend.normstat.revert 86 active true 87 end 88 end 89 90 66 91 # these variables will cycle through the known database names 67 92 $detPendingNormStatImfile_DB = 0 68 93 $detPendingNormImfile_DB = 0 69 94 $detPendingNormExp_DB = 0 95 $detPendingNormStatImfile_DB_revert = 0 96 $detPendingNormImfile_DB_revert = 0 97 $detPendingNormExp_DB_revert = 0 70 98 71 99 # select images ready for copy … … 440 468 end 441 469 end 470 471 task detrend.norm.revert 472 host local 473 474 periods -poll 60.0 475 periods -exec 1800.0 476 periods -timeout 120.0 477 npending 1 478 479 stdout NULL 480 stderr $LOGDIR/revert.log 481 482 task.exec 483 484 $run = dettool -revertnormalizedimfile -all 485 if ($DB:n == 0) 486 option DEFAULT 487 else 488 # save the DB name for the exit tasks 489 option $DB:$detPendingNormImfile_DB_revert 490 $run = $run -dbname $DB:$detPendingNormImfile_DB_revert 491 $detPendingNormImfile_DB_revert ++ 492 if ($detPendingNormImfile_DB_revert >= $DB:n) set detPendingNormImfile_DB_revert = 0 493 end 494 echo $run 495 command $run 496 end 497 498 # success 499 task.exit 0 500 end 501 502 # locked list 503 task.exit default 504 showcommand failure 505 end 506 507 task.exit crash 508 showcommand crash 509 end 510 511 # operation times out? 512 task.exit timeout 513 showcommand timeout 514 end 515 end 516 517 task detrend.normexp.revert 518 host local 519 520 periods -poll 60.0 521 periods -exec 1800.0 522 periods -timeout 120.0 523 npending 1 524 525 stdout NULL 526 stderr $LOGDIR/revert.log 527 528 task.exec 529 530 $run = dettool -revertnormalizedexp -all 531 if ($DB:n == 0) 532 option DEFAULT 533 else 534 # save the DB name for the exit tasks 535 option $DB:$detPendingNormExp_DB_revert 536 $run = $run -dbname $DB:$detPendingNormExp_DB_revert 537 $detPendingNormExp_DB_revert ++ 538 if ($detPendingNormExp_DB_revert >= $DB:n) set detPendingNormExp_DB_revert = 0 539 end 540 echo $run 541 command $run 542 end 543 544 # success 545 task.exit 0 546 end 547 548 # locked list 549 task.exit default 550 showcommand failure 551 end 552 553 task.exit crash 554 showcommand crash 555 end 556 557 # operation times out? 558 task.exit timeout 559 showcommand timeout 560 end 561 end 562 563 task detrend.normstat.revert 564 host local 565 566 periods -poll 60.0 567 periods -exec 1800.0 568 periods -timeout 120.0 569 npending 1 570 571 stdout NULL 572 stderr $LOGDIR/revert.log 573 574 task.exec 575 576 $run = dettool -revertnormalizedstat -all 577 if ($DB:n == 0) 578 option DEFAULT 579 else 580 # save the DB name for the exit tasks 581 option $DB:$detPendingNormStatImfile_DB_revert 582 $run = $run -dbname $DB:$detPendingNormStatImfile_DB_revert 583 $detPendingNormStatImfile_DB_revert ++ 584 if ($detPendingNormStatImfile_DB_revert >= $DB:n) set detPendingNormStatImfile_DB_revert = 0 585 end 586 echo $run 587 command $run 588 end 589 590 # success 591 task.exit 0 592 end 593 594 # locked list 595 task.exit default 596 showcommand failure 597 end 598 599 task.exit crash 600 showcommand crash 601 end 602 603 # operation times out? 604 task.exit timeout 605 showcommand timeout 606 end 607 end
Note:
See TracChangeset
for help on using the changeset viewer.
