IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2010, 4:07:44 PM (16 years ago)
Author:
eugene
Message:

updates fro trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ippTasks/summit.copy.pro

    r25340 r26867  
    111111
    112112    task.exec
     113#      echo "DB_DEBUG: PRE" $pztoolDatastore_DB $DB:$pztoolDatastore_DB
    113114      if ($DB:n == 0)
    114115        option DEFAULT
     
    121122        if ($pztoolDatastore_DB >= $DB:n) set pztoolDatastore_DB = 0
    122123      end
     124
     125      # More debug
     126#      echo "DB_DEBUG: POST" $pztoolDatastore_DB $DB:$pztoolDatastore_DB
    123127      periods -exec 120
    124128    end
     
    127131    task.exit 0
    128132        # flush pzDataStore book
    129         book init pzDataStore
     133#        book init pzDataStore
    130134        # convert 'stdout' to book format
    131135        ipptool2book stdout pzDataStore -key camera:telescope -uniq -setword dbname $options:0
     
    147151# run pzgetexp periodically to populate pzPendingExp in the database (no I/O)
    148152# 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 (pzPendingExp)
     153# and inserting these into a db table on the local cluster (pzDownloadExp)
    150154task pzgetexp
    151155  periods      -exec     30
     
    379383    periods      -exec     5
    380384    periods      -poll     0.05
    381     periods      -timeout  650
     385    periods      -timeout  1150
    382386    trange        -reset
    383387    # only active in the night (18:00 to 06:00 HST, times are UT):
     
    446450        stderr $LOGDIR/summit.copy.log
    447451
    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)
    450467            $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)))
    455470# && (($YEAR > 2008) || (("$YEAR" = "2007") && ($MONTH > 8))))
    456             $run = $run --md5 $MD5SUM
    457         end
     471#            $run = $run --md5 $MD5SUM
     472#        end
    458473        if ($NEBULOUS)
    459474            $run = $run --nebulous
     
    463478        # store the pageName for future reference below
    464479        options $pageName
    465 
     480       
    466481        # create the command line
    467482        if ($VERBOSE > 1)
    468483          echo command $run
    469484        end
     485        # More debug:
     486#       echo "DEBUG2: " $run
    470487        command $run
    471488    end
     
    506523        if ($pztoolClearFault_DB >= $DB:n) set pztoolClearFault_DB = 0
    507524      end
    508       periods -exec 600
     525      periods -exec 1800
    509526    end
    510527
Note: See TracChangeset for help on using the changeset viewer.