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

    r23480 r28557  
    3535end
    3636
     37macro detstack.revert.off
     38  task detrend.stack.revert
     39    active false
     40  end
     41end
     42
     43macro detstack.revert.on
     44  task detrend.stack.revert
     45    active true
     46  end
     47end
     48
    3749# this variable will cycle through the known database names
    3850$detPendingStackedImfile_DB = 0
     51$detPendingStackedImfile_revert_DB = 0
    3952
    4053# select images ready for detrend_stack.pl
     
    165178  end
    166179end
     180
     181
     182task detrend.stack.revert
     183  host         local
     184
     185  periods      -poll 60.0
     186  periods      -exec 1800.0
     187  periods      -timeout 120.0
     188  npending     1
     189
     190  stdout NULL
     191  stderr $LOGDIR/revert.log
     192
     193  task.exec
     194 
     195    $run = dettool -revertstacked -all
     196    if ($DB:n == 0)
     197      option DEFAULT
     198    else
     199      # save the DB name for the exit tasks
     200      option $DB:$detPendingStackedImfile_revert_DB
     201      $run = $run -dbname $DB:$detPendingStackedImfile_revert_DB
     202      $detPendingStackedImfile_revert_DB ++
     203      if ($detPendingStackedImfile_revert_DB >= $DB:n) set detPendingStackedImfile_revert_DB = 0
     204    end
     205    echo $run
     206    command $run
     207  end
     208
     209  # success
     210  task.exit    0
     211  end
     212
     213  # locked list
     214  task.exit    default
     215    showcommand failure
     216  end
     217
     218  task.exit    crash
     219    showcommand crash
     220  end
     221
     222  # operation times out?
     223  task.exit    timeout
     224    showcommand timeout
     225  end
     226end
Note: See TracChangeset for help on using the changeset viewer.