- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTasks/summit.copy.pro (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ippTasks/summit.copy.pro
r24054 r27840 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 650 382 # trage 16:00 23:59 383 # trage 00:00 04:00 385 periods -timeout 1150 386 trange -reset 387 # only active in the night (18:00 to 06:00 HST, times are UT): 388 # trange 04:00 16:00 389 # only active in the day (06:00 to 18:00 HST, times are UT): 390 # trange 16:00 23:59 391 # trange 00:00 04:00 384 392 385 393 task.exec … … 442 450 stderr $LOGDIR/summit.copy.log 443 451 444 $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 445 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) 446 467 $run = $run --compress 447 else 448 $run = $run --bytes $BYTES 449 end 450 if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0") && (not($COMPRESS))) 451 $run = $run --md5 $MD5SUM 452 end 468 end 469 # if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0") && (not($COMPRESS))) 470 # && (($YEAR > 2008) || (("$YEAR" = "2007") && ($MONTH > 8)))) 471 # $run = $run --md5 $MD5SUM 472 # end 453 473 if ($NEBULOUS) 454 474 $run = $run --nebulous … … 458 478 # store the pageName for future reference below 459 479 options $pageName 460 480 461 481 # create the command line 462 482 if ($VERBOSE > 1) 463 483 echo command $run 464 484 end 485 # More debug: 486 # echo "DEBUG2: " $run 465 487 command $run 466 488 end … … 501 523 if ($pztoolClearFault_DB >= $DB:n) set pztoolClearFault_DB = 0 502 524 end 503 periods -exec 600525 periods -exec 1800 504 526 end 505 527
Note:
See TracChangeset
for help on using the changeset viewer.
