IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 17, 2009, 10:04:08 AM (17 years ago)
Author:
bills
Message:

Speed up disttool -pendingcomponent by having separate queries for each stage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/dist.pro

    r25113 r25429  
    1616$distQueue_DB = 0
    1717
     18### list of stages
     19#list of stages
     20$STAGE:n = 0
     21list STAGE -add "raw"
     22list STAGE -add "chip"
     23list STAGE -add "camera"
     24list STAGE -add "fake"
     25list STAGE -add "warp"
     26list STAGE -add "diff"
     27list STAGE -add "stack"
     28
     29$currentStage = 0
     30
    1831### Check status of tasks
    1932macro dist.status
     
    7891
    7992  task.exec
    80     $run = disttool -pendingcomponent
     93    $run = disttool -pendingcomponent -stage $STAGE:$currentStage
     94    $currentStage ++
     95    if ($currentStage >= $STAGE:n) set currentStage = 0
    8196    if ($DB:n == 0)
    8297      option DEFAULT
     
    85100      option $DB:$distToProcess_DB
    86101      $run = $run -dbname $DB:$distToProcess_DB
    87       $distToProcess_DB ++
    88       if ($distToProcess_DB >= $DB:n) set distToProcess_DB = 0
     102
     103      # only increment the database number after we have gone through all of
     104      # the stages
     105      if ($currentStage == 0)
     106          $distToProcess_DB ++
     107          if ($distToProcess_DB >= $DB:n) set distToProcess_DB = 0
     108      end
    89109    end
    90110    add_poll_args run
Note: See TracChangeset for help on using the changeset viewer.