Index: /trunk/ippTasks/detrend.mkruns.pro
===================================================================
--- /trunk/ippTasks/detrend.mkruns.pro	(revision 9505)
+++ /trunk/ippTasks/detrend.mkruns.pro	(revision 9506)
@@ -14,5 +14,5 @@
   host         local
 
-  periods      -poll 5
+  periods      -poll 1
   periods      -exec 60
   periods      -timeout 30
@@ -43,5 +43,5 @@
   host         local
 
-  periods      -poll 5
+  periods      -poll 1
   periods      -exec 60
   periods      -timeout 30
@@ -72,5 +72,5 @@
   host         local
 
-  periods      -poll 5
+  periods      -poll 1
   periods      -exec 60
   periods      -timeout 30
Index: /trunk/ippTasks/detrend.norm.pro
===================================================================
--- /trunk/ippTasks/detrend.norm.pro	(revision 9505)
+++ /trunk/ippTasks/detrend.norm.pro	(revision 9506)
@@ -23,6 +23,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -67,6 +67,6 @@
 # copy new images, sending job to desired host
 task	       dettool.normstat.process
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
@@ -134,6 +134,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -181,6 +181,6 @@
 # copy new images, sending job to desired host
 task	       dettool.norm.process
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
@@ -252,6 +252,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -299,6 +299,6 @@
 # copy new images, sending job to desired host
 task	       dettool.normexp.process
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
Index: /trunk/ippTasks/detrend.process.pro
===================================================================
--- /trunk/ippTasks/detrend.process.pro	(revision 9505)
+++ /trunk/ippTasks/detrend.process.pro	(revision 9506)
@@ -29,6 +29,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -74,6 +74,6 @@
 # copy new images, sending job to desired host
 task	       dettool.process.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
@@ -146,6 +146,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -189,6 +189,6 @@
 # copy new images, sending job to desired host
 task	       dettool.processexp.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
Index: /trunk/ippTasks/detrend.reject.pro
===================================================================
--- /trunk/ippTasks/detrend.reject.pro	(revision 9505)
+++ /trunk/ippTasks/detrend.reject.pro	(revision 9506)
@@ -28,6 +28,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -69,6 +69,6 @@
 # copy new images, sending job to desired host
 task	       dettool.reject.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
@@ -109,6 +109,6 @@
     # create example job options as a demonstration
     options "$line"
-    echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE
-    command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE
+    echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE --camera $CAMERA
+    command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE --camera $CAMERA
  end
 
Index: /trunk/ippTasks/detrend.resid.pro
===================================================================
--- /trunk/ippTasks/detrend.resid.pro	(revision 9505)
+++ /trunk/ippTasks/detrend.resid.pro	(revision 9506)
@@ -30,6 +30,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -79,6 +79,6 @@
 # copy new images, sending job to desired host
 task	       dettool.resid.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
@@ -154,6 +154,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -178,5 +178,6 @@
       $EXP_TAG  = $word:3
       $INCLUDE  = $word:4
-      queuepush DetrendResidExposures -uniq -key 1:2:4 "NEW $DET_ID $ITER $DET_TYPE $EXP_TAG $INCLUDE"
+      $CAMERA   = $word:5
+      queuepush DetrendResidExposures -uniq -key 1:2:4 "NEW $DET_ID $ITER $DET_TYPE $EXP_TAG $INCLUDE $CAMERA"
     end
 
@@ -199,6 +200,6 @@
 # copy new images, sending job to desired host
 task	       dettool.residexp.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
@@ -226,4 +227,5 @@
     $EXP_TAG  = $word:3
     $INCLUDE  = $word:4
+    $CAMERA   = $word:5
 
     # XXX add $WORKDIR/$LOG_DIR
@@ -250,9 +252,9 @@
     options "$line"
     if ($drop) 
-      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --reject
-      command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --reject
+      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --reject
+      command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --reject
     else 
-      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE
-      command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE
+      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
+      command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITER --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
     end
   end
Index: /trunk/ippTasks/detrend.stack.pro
===================================================================
--- /trunk/ippTasks/detrend.stack.pro	(revision 9505)
+++ /trunk/ippTasks/detrend.stack.pro	(revision 9506)
@@ -30,6 +30,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 3.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -72,7 +72,7 @@
 # copy new images, sending job to desired host
 task	       dettool.stack.run
-  periods      -poll 0.5
-  periods      -exec 1.0
-  periods      -timeout 30
+  periods      -poll $runpoll
+  periods      -exec $runexec
+  periods      -timeout 120
 
   task.exec
Index: /trunk/ippTasks/pantasks.pro
===================================================================
--- /trunk/ippTasks/pantasks.pro	(revision 9505)
+++ /trunk/ippTasks/pantasks.pro	(revision 9506)
@@ -2,9 +2,14 @@
 $network = 1
 $parallel = 1
-$scripts = /home/kiawe/eugene/src/panstarrs/ipp/ippTasks
+$scripts = .
 $WORKDIR = `ipp_workdir.pl`
+$loadpoll = 1
+$loadexec = 10
+$runpoll = 0.5
+$runexec = 1
 
 macro init.controller
   if ($parallel) 
+    # controller host add mithrandir
     # controller host add alala
     controller exit true
Index: /trunk/ippTasks/phase0.pro
===================================================================
--- /trunk/ippTasks/phase0.pro	(revision 9505)
+++ /trunk/ippTasks/phase0.pro	(revision 9506)
@@ -22,6 +22,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 2.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -65,6 +65,6 @@
 # run the phase0imfile script on pending images
 task	       phase0.imfile.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
@@ -138,6 +138,6 @@
   host         local
 
-  periods      -poll 1.0
-  periods      -exec 2.0
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -181,6 +181,6 @@
 # run the phase0imfile script on pending images
 task	       phase0.exp.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 30
 
Index: /trunk/ippTasks/phase2.pro
===================================================================
--- /trunk/ippTasks/phase2.pro	(revision 9505)
+++ /trunk/ippTasks/phase2.pro	(revision 9506)
@@ -21,6 +21,6 @@
   host         local
 
-  periods      -poll 1
-  periods      -exec 5
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -63,6 +63,6 @@
 # run the phase2imfile script on pending images
 task	       phase2.imfile.run
-  periods      -poll 0.5
-  periods      -exec 1
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 60
 
Index: /trunk/ippTasks/phase3.pro
===================================================================
--- /trunk/ippTasks/phase3.pro	(revision 9505)
+++ /trunk/ippTasks/phase3.pro	(revision 9506)
@@ -21,6 +21,6 @@
   host         local
 
-  periods      -poll 1
-  periods      -exec 5
+  periods      -poll $loadpoll
+  periods      -exec $loadexec
   periods      -timeout 30
 
@@ -59,6 +59,6 @@
 # run the phase3imfile script on pending images
 task	       phase3.exp.run
-  periods      -poll 0.5
-  periods      -exec 1.0
+  periods      -poll $runpoll
+  periods      -exec $runexec
   periods      -timeout 5
 
