Changeset 64


Ignore:
Timestamp:
04/14/05 09:58:32 (19 years ago)
Author:
bastiaans
Message:

plugin/togap.py:

Misc. code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugin/togap.py

    r61 r64  
    55DEBUG_LEVEL = 10
    66
    7 # If set to 1, in addition to multicasting with gmetric,
    8 # also transmit jobinfo data to a Toga server for archival
    9 #
    10 ARCHIVE_MODE = 0
    11 
    12 # Where is the toga server at
    13 #
    14 #TOGA_SERVER = 'monitor2.irc.sara.nl:9048'
    15 
    167# Wether or not to run as a daemon in background
    178#
    189DAEMONIZE = 0
    1910
    20 # Allows to specify alternate config
    21 #
    22 #GMOND_CONF = '/etc/gmondconf'
     11# How many seconds interval for polling of jobs
     12#
     13# this will effect directly how accurate the
     14# end time of a job can be determined
     15#
     16TORQUE_POLL_INTERVAL = 10
    2317
    2418from PBSQuery import PBSQuery
     
    4236                        cmd = cmd + ' -c' + GMOND_CONF
    4337                except NameError:
    44                         debug_msg( 8, 'Assuming /etc/gmond.conf for gmetric cmd (ommitting)' )
     38                        debug_msg( 10, 'Assuming /etc/gmond.conf for gmetric cmd (ommitting)' )
    4539
    4640                cmd = cmd + ' -n' + metricname + ' -v' + metricval + ' -t' + tmax
     
    4842                print cmd
    4943                #os.system( cmd )
    50 
    51         def togaSubmitJob( self, jobid, jobattrs ):
    52 
    53                 pass
    5444
    5545class PBSDataGatherer:
     
    222212               
    223213                        self.getJobData()
    224                         time.sleep( 1 )
     214                        time.sleep( TORQUE_POLL_INTERVAL )     
    225215
    226216def printTime( ):
Note: See TracChangeset for help on using the changeset viewer.