Changeset 347 for trunk


Ignore:
Timestamp:
04/27/07 11:32:39 (17 years ago)
Author:
bastiaans
Message:

jobmond/jobmond.py:

  • some SGE code fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobmond/jobmond.py

    r341 r347  
    412412
    413413        jobs = { }
     414        SGE_QSTAT_XML_FILE      = '/tmp/.jobmonarch.sge.qstat'
    414415
    415416        def __init__( self ):
     
    426427                """those in the current DRMAA session"""
    427428
    428                 self.qstatparser = SgeQstatXMLParser( SGE_QSTAT_XML_FILE )
     429                self.qstatparser = SgeQstatXMLParser( self.SGE_QSTAT_XML_FILE )
    429430
    430431                # Obtain the qstat information from SGE in XML format
     
    436437                # Get the information about the current jobs in the SGE queue
    437438                info = os.popen("qstat -ext -xml").readlines()
    438                 f = open(SGE_QSTAT_XML_FILE,'w')
     439                f = open(self.SGE_QSTAT_XML_FILE,'w')
    439440                for lines in info:
    440441                        f.write(lines)
     
    796797        elif BATCH_API == 'sge':
    797798
    798                 pass
    799                 # import Babu's code here
    800                 #
    801                 #try:
    802                 #       import sge_drmaa
    803                 #
    804                 #except ImportError:
    805                 #
    806                 #       debug_msg( 0, "fatal error: BATCH_API set to 'sge' but python module 'sge_drmaa' is not installed' )
    807                 #       sys.exit( 1 )
    808                 #
    809                 #gather = SgeDataGatherer()
     799                gather = SgeDataGatherer()
    810800
    811801        else:
Note: See TracChangeset for help on using the changeset viewer.