IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 30, 2010, 10:04:25 AM (16 years ago)
Author:
heather
Message:

detrend reverts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/detrend.norm.pro

    r23480 r28557  
    6464end
    6565
     66macro 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
     76end
     77
     78macro 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
     88end
     89
     90
    6691# these variables will cycle through the known database names
    6792$detPendingNormStatImfile_DB = 0
    6893$detPendingNormImfile_DB = 0
    6994$detPendingNormExp_DB = 0
     95$detPendingNormStatImfile_DB_revert = 0
     96$detPendingNormImfile_DB_revert = 0
     97$detPendingNormExp_DB_revert = 0
    7098
    7199# select images ready for copy
     
    440468  end
    441469end
     470
     471task 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
     515end
     516
     517task 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
     561end
     562
     563task 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
     607end
Note: See TracChangeset for help on using the changeset viewer.