Index: branches/tap_branches/ippTasks/camera.pro
===================================================================
--- branches/tap_branches/ippTasks/camera.pro	(revision 25900)
+++ branches/tap_branches/ippTasks/camera.pro	(revision 27838)
@@ -6,4 +6,20 @@
 check.globals
 
+# camera.pro should have a more restricted polling limit (to avoid stress with getstar)
+if ($?POLL_LIMIT_CAMERA == 0) set POLL_LIMIT_CAMERA = 10
+
+macro set.camera.poll
+  if ($0 != 2)
+    echo "USAGE:set.camera.poll (value)"
+    break
+  end
+ 
+  $POLL_LIMIT_CAMERA = $1
+end
+
+macro get.camera.poll
+  echo "camera poll limit: $POLL_LIMIT_CAMERA"
+end
+
 book init camPendingExp
 
@@ -35,4 +51,16 @@
     active false
   end
+  task camera.revert
+    active false
+  end
+end
+
+macro camera.revert.on
+  task camera.revert
+    active true
+  end
+end
+
+macro camera.revert.off
   task camera.revert
     active false
@@ -70,5 +98,8 @@
       if ($camera_DB >= $DB:n) set camera_DB = 0
     end
-    add_poll_args run
+    $run = $run -limit $POLL_LIMIT_CAMERA
+    # NOTE: we do not want to overload the dvo db machine with getstar queries, 
+    # so we will limit the camera stage to a smaller number than the other stages
+    # add_poll_args run
     add_poll_labels run
     command $run
@@ -112,4 +143,5 @@
     if ($N == 0) break
     if ($NETWORK == 0) break
+    if ($BURNTOOLING == 1) break
     
     # look for new images in camPendingExp (pantaskState == INIT)
@@ -188,6 +220,6 @@
   host         local
 
-  periods      -poll 5.0
-  periods      -exec 60.0
+  periods      -poll 60.0
+  periods      -exec 1800.0
   periods      -timeout 120.0
   npending     1
