IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26961


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

revert! dist, diff, stack!!

Location:
trunk/ippTasks
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diff.pro

    r26889 r26961  
    4040    active true
    4141  end
     42  task diff.revert
     43    active false
     44  end
    4245end
    4346
     
    5356    active false
    5457  end
     58  task diff.revert
     59    active false
     60  end
     61end
     62
     63macro diff.revert.on
     64  task diff.revert
     65    active true
     66  end
     67end
     68
     69macro diff.revert.off
     70  task diff.revert
     71    active false
     72  end
    5573end
    5674
     
    7694### Load tasks for doing the differences
    7795### Tasks are loaded into diffSkyfile.
     96
     97$diff_revert_DB = 0
     98
    7899task           diff.skycell.load
    79100  host         local
     
    380401#   end
    381402# end
     403
     404task diff.revert
     405  host         local
     406
     407  periods      -poll 5.0
     408  periods      -exec 60.0
     409  periods      -timeout 120.0
     410  npending     1
     411
     412  stdout NULL
     413  stderr $LOGDIR/revert.log
     414
     415  task.exec
     416    if ($LABEL:n == 0) break
     417    $run = difftool -revertdiffskyfile
     418    if ($DB:n == 0)
     419      option DEFAULT
     420    else
     421      # save the DB name for the exit tasks
     422      option $DB:$diff_revert_DB
     423      $run = $run -dbname $DB:$diff_revert_DB
     424      $diff_revert_DB ++
     425      if ($diff_revert_DB >= $DB:n) set diff_revert_DB = 0
     426    end
     427    add_poll_labels run
     428    command $run
     429  end
     430
     431  # success
     432  task.exit    0
     433  end
     434
     435  # locked list
     436  task.exit    default
     437    showcommand failure
     438  end
     439
     440  task.exit    crash
     441    showcommand crash
     442  end
     443
     444  # operation times out?
     445  task.exit    timeout
     446    showcommand timeout
     447  end
     448end
  • trunk/ippTasks/dist.pro

    r26082 r26961  
    5555    active true
    5656  end
     57  task diff.revert
     58    active false
     59  end
    5760end
    5861
     
    6871  end
    6972  task dist.advance.run
     73    active false
     74  end
     75  task diff.revert
    7076    active false
    7177  end
  • 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.