IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2010, 3:26:43 PM (16 years ago)
Author:
heather
Message:

revert! dist, diff, stack!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/stack.pro

    r24603 r26961  
    3636    active true
    3737  end
     38  task stack.revert
     39    active false
     40  end
    3841end
    3942
     
    4649    active false
    4750  end
    48 end
     51  task stack.revert
     52    active false
     53  end
     54end
     55
     56macro stack.revert.on
     57  task stack.revert
     58    active true
     59  end
     60end
     61
     62macro stack.revert.off
     63  task stack.revert
     64    active false
     65  end
     66end
     67
     68
     69
     70
    4971
    5072# macro stack.cleanup.on
     
    6688# end
    6789
    68 
     90$stack_revert_DB = 0
    6991### Load tasks for doing the stack
    7092### Tasks are loaded into stackSumSkyfile.
     
    123145  end
    124146end
     147
     148
     149
    125150
    126151### Run tasks for calculating the stack overlaps
     
    316341#   end
    317342# end
     343
     344task stack.revert
     345  host         local
     346
     347  periods      -poll 5.0
     348  periods      -exec 60.0
     349  periods      -timeout 120.0
     350  npending     1
     351
     352  stdout NULL
     353  stderr $LOGDIR/revert.log
     354
     355  task.exec
     356    if ($LABEL:n == 0) break
     357    $run = stacktool -revertsumskyfile
     358    if ($DB:n == 0)
     359      option DEFAULT
     360    else
     361      # save the DB name for the exit tasks
     362      option $DB:$stack_revert_DB
     363      $run = $run -dbname $DB:$stack_revert_DB
     364      $stack_revert_DB ++
     365      if ($stack_revert_DB >= $DB:n) set stack_revert_DB = 0
     366    end
     367    add_poll_labels run
     368    command $run
     369  end
     370
     371  # success
     372  task.exit    0
     373  end
     374
     375  # locked list
     376  task.exit    default
     377    showcommand failure
     378  end
     379
     380  task.exit    crash
     381    showcommand crash
     382  end
     383
     384  # operation times out?
     385  task.exit    timeout
     386    showcommand timeout
     387  end
     388end
     389
Note: See TracChangeset for help on using the changeset viewer.