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.process.pro

    r23480 r28557  
    5151end
    5252
     53macro detproc.revert.off
     54  task detrend.process.revert
     55    active false
     56  end
     57  task detrend.processexp.revert
     58    active false
     59  end
     60end
     61
     62macro detproc.revert.on
     63  task detrend.process.revert
     64    active true
     65  end
     66  task detrend.processexp.revert
     67    active true
     68  end
     69end
    5370
    5471# these variables will cycle through the known database names
    5572$detPendingProcessedImfile_DB = 0
    5673$detPendingProcessedExp_DB = 0
     74$detPendingProcessedImfile_revert_DB = 0
     75$detPendingProcessedExp_revert_DB = 0
    5776
    5877# select images ready for copy
     
    313332  end
    314333end
     334
     335task detrend.process.revert
     336  host         local
     337
     338  periods      -poll 60.0
     339  periods      -exec 1800.0
     340  periods      -timeout 120.0
     341  npending     1
     342
     343  stdout NULL
     344  stderr $LOGDIR/revert.log
     345
     346  task.exec
     347 
     348    $run = dettool -revertprocessedimfile -all
     349    if ($DB:n == 0)
     350      option DEFAULT
     351    else
     352      # save the DB name for the exit tasks
     353      option $DB:$detPendingProcessedImfile_revert_DB
     354      $run = $run -dbname $DB:$detPendingProcessedImfile_revert_DB
     355      $detPendingProcessedImfile_revert_DB ++
     356      if ($detPendingProcessedImfile_revert_DB >= $DB:n) set detPendingProcessedImfile_revert_DB = 0
     357    end
     358    echo $run
     359    command $run
     360  end
     361
     362  # success
     363  task.exit    0
     364  end
     365
     366  # locked list
     367  task.exit    default
     368    showcommand failure
     369  end
     370
     371  task.exit    crash
     372    showcommand crash
     373  end
     374
     375  # operation times out?
     376  task.exit    timeout
     377    showcommand timeout
     378  end
     379end
     380
     381task detrend.processexp.revert
     382  host         local
     383
     384  periods      -poll 60.0
     385  periods      -exec 1800.0
     386  periods      -timeout 120.0
     387  npending     1
     388
     389  stdout NULL
     390  stderr $LOGDIR/revert.log
     391
     392  task.exec
     393 
     394    $run = dettool -revertprocessedexp -all
     395    if ($DB:n == 0)
     396      option DEFAULT
     397    else
     398      # save the DB name for the exit tasks
     399      option $DB:$detPendingProcessedExp_revert_DB
     400      $run = $run -dbname $DB:$detPendingProcessedExp_revert_DB
     401      $detPendingProcessedExp_revert_DB ++
     402      if ($detPendingProcessedExp_revert_DB >= $DB:n) set detPendingProcessedExp_revert_DB = 0
     403    end
     404    echo $run
     405    command $run
     406  end
     407
     408  # success
     409  task.exit    0
     410  end
     411
     412  # locked list
     413  task.exit    default
     414    showcommand failure
     415  end
     416
     417  task.exit    crash
     418    showcommand crash
     419  end
     420
     421  # operation times out?
     422  task.exit    timeout
     423    showcommand timeout
     424  end
     425end
Note: See TracChangeset for help on using the changeset viewer.