IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25566


Ignore:
Timestamp:
Sep 24, 2009, 4:27:00 PM (17 years ago)
Author:
bills
Message:

improve logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r25549 r25566  
    1 
    2 #$VERBOSE = 3
     1# pstamp.pro : Postage Stamp Server tasks
     2
     3check.globals
     4
     5$LOGSUBDIR = $LOGDIR/pstamp
     6mkdir $LOGSUBDIR
    37
    48# these variables wil cycle through the known database names
     
    107111
    108112    task.exec
     113        stdout $LOGSUBDIR/pstamp.request.find.log
     114        stderr $LOGSUBDIR/pstamp.request.find.log
    109115        if ($DB:n == 0)
    110116            option DEFAULT
     
    144150
    145151    task.exec
     152        stdout $LOGSUBDIR/pstamp.request.load.log
     153        stderr $LOGSUBDIR/pstamp.request.load.log
    146154        $run = pstamptool -pendingreq
    147155        if ($DB:n == 0)
     
    187195
    188196    task.exec
     197        stdout $LOGSUBDIR/pstamp.request.run.log
     198        stderr $LOGSUBDIR/pstamp.request.run.log
    189199        book npages pstampRequest -var N
    190200        if ($N == 0) break
     
    242252
    243253    task.exec
     254        stdout $LOGSUBDIR/pstamp.finish.load.log
     255        stderr $LOGSUBDIR/pstamp.finish.load.log
    244256        $run = pstamptool  -completedreq
    245257        if ($DB:n == 0)
     
    284296
    285297    task.exec
     298        stdout $LOGSUBDIR/request.finish.run.log
     299        stderr $LOGSUBDIR/request.finish.run.log
    286300        book npages pstampFinish -var N
    287301        if ($N == 0) break
     
    339353
    340354    task.exec
     355        stdout $LOGSUBDIR/pstamp.job.load.log
     356        stderr $LOGSUBDIR/pstamp.job.load.log
    341357        $run = pstamptool -pendingjob
    342358        if ($DB:n == 0)
     
    365381    end
    366382
     383    task.exit   crash
     384        showcommand crash
     385    end
     386
     387    task.exit   timeout
     388        showcommand timeout
     389    end
     390
    367391    task.exit   default
    368392        showcommand failure
    369393    end
    370394
    371     task.exit   crash
    372         showcommand crash
    373     end
    374 
    375     task.exit   timeout
    376         showcommand timeout
    377     end
    378395end
    379396
     
    384401
    385402    task.exec
     403        stdout $LOGSUBDIR/pstamp.job.run.log
     404        stderr $LOGSUBDIR/pstamp.job.run.log
    386405        book npages pstampJob -var N
    387406        if ($N == 0)
     
    454473
    455474    periods     -poll $LOADPOLL
    456     periods     -exec 180
     475    periods     -exec 10
    457476    periods     -timeout 300
    458477    npending    1
    459478
    460479    task.exec
     480        stdout $LOGSUBDIR/pstamp.job.revert.log
     481        stderr $LOGSUBDIR/pstamp.job.revert.log
    461482        $run = pstamptool -revertjob -all
    462483        if ($DB:n == 0)
Note: See TracChangeset for help on using the changeset viewer.