Index: trunk/ippTasks/summit.copy.pro
===================================================================
--- trunk/ippTasks/summit.copy.pro	(revision 16349)
+++ trunk/ippTasks/summit.copy.pro	(revision 16370)
@@ -75,7 +75,7 @@
 
     # timeout shorter than exec so jobs do not build up
-    periods      -exec     300
-    periods      -poll     100
-    periods      -timeout  600
+    periods      -exec      10
+    periods      -poll       1
+    periods      -timeout   20
     npending     1
 
@@ -100,8 +100,7 @@
 # run pzgetexp periodically to populate pzPendingExp in the database (no I/O)
 task pzgetexp
-  # timeout shorter than exec so jobs do not build up
   periods      -exec     10
   periods      -poll     1
-  periods      -timeout  10
+  periods      -timeout  20
   npending      1
   host         local
@@ -153,8 +152,7 @@
     host         local
 
-    # timeout shorter than exec so jobs do not build up
     periods      -exec     10
     periods      -poll     1
-    periods      -timeout  10
+    periods      -timeout  20
     npending     1
 
@@ -247,8 +245,7 @@
     host         local
 
-    # timeout shorter than exec so jobs do not build up
-    periods      -exec     5
-    periods      -poll     1
-    periods      -timeout  5
+    periods      -exec     10
+    periods      -poll      1
+    periods      -timeout  20
     npending     1
 
@@ -334,6 +331,11 @@
         options $pageName $workdir
 
-        $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES 
-        if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0"))
+        $run = dsget --uri $URI --filename $FILENAME
+	if ($COMPRESS) 
+            $run = $run --compress
+        else
+            $run = $run --bytes $BYTES 
+        end
+        if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0") && (not($COMPRESS)))
             $run = $run --md5 $MD5SUM
         end
@@ -383,4 +385,26 @@
     task.exit default
         showcommand failure
+
+        # get related info from the associated page
+        book getword pzPendingImfile $options:0 exp_name -var EXP_NAME
+        book getword pzPendingImfile $options:0 class -var CLASS
+        book getword pzPendingImfile $options:0 camera -var CAMERA
+        book getword pzPendingImfile $options:0 telescope -var TELESCOPE
+        book getword pzPendingImfile $options:0 class_id -var CLASS_ID
+        book getword pzPendingImfile $options:0 filename -var FILENAME
+
+	# we saved the workdir so we can pass it to pztool
+	$workdir = $options:1
+
+	# update the database with the fault state
+        $run = pztool -copydone -exp_name $EXP_NAME -inst $CAMERA -telescope $TELESCOPE -class $CLASS -class_id $CLASS_ID -uri $FILENAME -workdir $workdir -code $JOB_STATUS -end_stage reg
+
+        # create the command line
+        if ($VERBOSE > 1)
+          echo exec $run
+        end
+        exec $run
+
+	# update the pantasks process tables
         process_exit pzPendingImfile $options:0 $JOB_STATUS
     end
