Changeset 26867 for branches/eam_branches/20091201/ippTasks/summit.copy.pro
- Timestamp:
- Feb 10, 2010, 4:07:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ippTasks/summit.copy.pro
r25340 r26867 111 111 112 112 task.exec 113 # echo "DB_DEBUG: PRE" $pztoolDatastore_DB $DB:$pztoolDatastore_DB 113 114 if ($DB:n == 0) 114 115 option DEFAULT … … 121 122 if ($pztoolDatastore_DB >= $DB:n) set pztoolDatastore_DB = 0 122 123 end 124 125 # More debug 126 # echo "DB_DEBUG: POST" $pztoolDatastore_DB $DB:$pztoolDatastore_DB 123 127 periods -exec 120 124 128 end … … 127 131 task.exit 0 128 132 # flush pzDataStore book 129 book init pzDataStore133 # book init pzDataStore 130 134 # convert 'stdout' to book format 131 135 ipptool2book stdout pzDataStore -key camera:telescope -uniq -setword dbname $options:0 … … 147 151 # run pzgetexp periodically to populate pzPendingExp in the database (no I/O) 148 152 # this task is querying the data store for a list of exposures ("filesets") 149 # and inserting these into a db table on the local cluster (pz PendingExp)153 # and inserting these into a db table on the local cluster (pzDownloadExp) 150 154 task pzgetexp 151 155 periods -exec 30 … … 379 383 periods -exec 5 380 384 periods -poll 0.05 381 periods -timeout 650385 periods -timeout 1150 382 386 trange -reset 383 387 # only active in the night (18:00 to 06:00 HST, times are UT): … … 446 450 stderr $LOGDIR/summit.copy.log 447 451 448 $run = summit_copy.pl --uri $URI --filename $FILENAME --exp_name $EXP_NAME --inst $CAMERA --telescope $TELESCOPE --class $CLASS --class_id $CLASS_ID --bytes $BYTES --md5 $MD5SUM --dbname $DBNAME --timeout 120 --verbose --copies 2 449 if ($COMPRESS) 452 book getpage pzDataStore 0 -var PZDSPAGE -key dbname $DBNAME 453 book getword pzDataStore $PZDSPAGE use_compress -var USECOMPRESS 454 455 # Debug line 456 # echo "DEBUG: " $DBNAME $EXP_NAME $CAMERA $PZDSPAGE $USECOMPRESS 457 458 # unconditionally turn on requesting compression until we figuure 459 # out why the above doesn't work 460 if ($USECOMPRESS == "NULL") 461 # if ("$CAMERA" == "gpc1") 462 $USECOMPRESS = 1 463 end 464 465 $run = summit_copy.pl --uri $URI --filename $FILENAME --exp_name $EXP_NAME --inst $CAMERA --telescope $TELESCOPE --class $CLASS --class_id $CLASS_ID --bytes $BYTES --md5 $MD5SUM --dbname $DBNAME --timeout 600 --verbose --copies 2 466 if ($USECOMPRESS == 1) 450 467 $run = $run --compress 451 else 452 $run = $run --bytes $BYTES 453 end 454 if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0") && (not($COMPRESS))) 468 end 469 # if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0") && (not($COMPRESS))) 455 470 # && (($YEAR > 2008) || (("$YEAR" = "2007") && ($MONTH > 8)))) 456 $run = $run --md5 $MD5SUM457 end471 # $run = $run --md5 $MD5SUM 472 # end 458 473 if ($NEBULOUS) 459 474 $run = $run --nebulous … … 463 478 # store the pageName for future reference below 464 479 options $pageName 465 480 466 481 # create the command line 467 482 if ($VERBOSE > 1) 468 483 echo command $run 469 484 end 485 # More debug: 486 # echo "DEBUG2: " $run 470 487 command $run 471 488 end … … 506 523 if ($pztoolClearFault_DB >= $DB:n) set pztoolClearFault_DB = 0 507 524 end 508 periods -exec 600525 periods -exec 1800 509 526 end 510 527
Note:
See TracChangeset
for help on using the changeset viewer.
