IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16370


Ignore:
Timestamp:
Feb 8, 2008, 9:34:58 AM (18 years ago)
Author:
eugene
Message:

more sensible timeouts, add compress option, working on dsget error status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/summit.copy.pro

    r16349 r16370  
    7575
    7676    # timeout shorter than exec so jobs do not build up
    77     periods      -exec     300
    78     periods      -poll     100
    79     periods      -timeout  600
     77    periods      -exec      10
     78    periods      -poll       1
     79    periods      -timeout   20
    8080    npending     1
    8181
     
    100100# run pzgetexp periodically to populate pzPendingExp in the database (no I/O)
    101101task pzgetexp
    102   # timeout shorter than exec so jobs do not build up
    103102  periods      -exec     10
    104103  periods      -poll     1
    105   periods      -timeout  10
     104  periods      -timeout  20
    106105  npending      1
    107106  host         local
     
    153152    host         local
    154153
    155     # timeout shorter than exec so jobs do not build up
    156154    periods      -exec     10
    157155    periods      -poll     1
    158     periods      -timeout  10
     156    periods      -timeout  20
    159157    npending     1
    160158
     
    247245    host         local
    248246
    249     # timeout shorter than exec so jobs do not build up
    250     periods      -exec     5
    251     periods      -poll     1
    252     periods      -timeout  5
     247    periods      -exec     10
     248    periods      -poll      1
     249    periods      -timeout  20
    253250    npending     1
    254251
     
    334331        options $pageName $workdir
    335332
    336         $run = dsget --uri $URI --filename $FILENAME --bytes $BYTES
    337         if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0"))
     333        $run = dsget --uri $URI --filename $FILENAME
     334        if ($COMPRESS)
     335            $run = $run --compress
     336        else
     337            $run = $run --bytes $BYTES
     338        end
     339        if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0") && (not($COMPRESS)))
    338340            $run = $run --md5 $MD5SUM
    339341        end
     
    383385    task.exit default
    384386        showcommand failure
     387
     388        # get related info from the associated page
     389        book getword pzPendingImfile $options:0 exp_name -var EXP_NAME
     390        book getword pzPendingImfile $options:0 class -var CLASS
     391        book getword pzPendingImfile $options:0 camera -var CAMERA
     392        book getword pzPendingImfile $options:0 telescope -var TELESCOPE
     393        book getword pzPendingImfile $options:0 class_id -var CLASS_ID
     394        book getword pzPendingImfile $options:0 filename -var FILENAME
     395
     396        # we saved the workdir so we can pass it to pztool
     397        $workdir = $options:1
     398
     399        # update the database with the fault state
     400        $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
     401
     402        # create the command line
     403        if ($VERBOSE > 1)
     404          echo exec $run
     405        end
     406        exec $run
     407
     408        # update the pantasks process tables
    385409        process_exit pzPendingImfile $options:0 $JOB_STATUS
    386410    end
Note: See TracChangeset for help on using the changeset viewer.