IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26028


Ignore:
Timestamp:
Nov 4, 2009, 11:19:01 AM (17 years ago)
Author:
eugene
Message:

rename POLLLIMIT to POLL_LIMIT for legibility; add separate POLL_LIMIT_CAMERA

Location:
trunk/ippTasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/camera.pro

    r25693 r26028  
    55# test for required global variables
    66check.globals
     7
     8# camera.pro should have a more restricted polling limit (to avoid stress with getstar)
     9if ($?POLL_LIMIT_CAMERA == 0) set POLL_LIMIT_CAMERA = 10
     10
     11macro set.camera.poll
     12  if ($0 != 2)
     13    echo "USAGE:set.camera.poll (value)"
     14    break
     15  end
     16 
     17  $POLL_LIMIT_CAMERA = $1
     18end
     19
     20macro get.camera.poll
     21  echo "camera poll limit: $POLL_LIMIT_CAMERA"
     22end
    723
    824book init camPendingExp
     
    7086      if ($camera_DB >= $DB:n) set camera_DB = 0
    7187    end
    72     add_poll_args run
     88    $run = $run -limit $POLL_LIMIT_CAMERA
     89    # NOTE: we do not want to overload the dvo db machine with getstar queries,
     90    # so we will limit the camera stage to a smaller number than the other stages
     91    # add_poll_args run
    7392    add_poll_labels run
    7493    command $run
  • trunk/ippTasks/pantasks.pro

    r25966 r26028  
    77if ($?VERBOSE == 0)       set VERBOSE = 1
    88if ($?LABEL:n == 0)       set LABEL:n = 0
    9 if ($?POLLLIMIT == 0)     set POLLLIMIT = 32
     9if ($?POLL_LIMIT == 0)    set POLL_LIMIT = 32
    1010if ($?KEEP_FAILURES == 0) set KEEP_FAILURES = 0
    1111
     
    330330
    331331    local command i
    332     $command = $$1 -limit $POLLLIMIT
     332    $command = $$1 -limit $POLL_LIMIT
    333333
    334334    $$1 = $command
     
    484484  end
    485485 
    486   $POLLLIMIT = $1
     486  $POLL_LIMIT = $1
    487487end
    488488
    489489macro get.poll
    490   echo "poll limit: $POLLLIMIT"
     490  echo "poll limit: $POLL_LIMIT"
    491491end
    492492
Note: See TracChangeset for help on using the changeset viewer.