- Timestamp:
- 04/20/05 09:16:52 (18 years ago)
- Location:
- trunk/plugin
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugin/togap.py
r88 r91 95 95 if version_patch < 1: 96 96 97 incompat biel= 197 incompatible = 1 98 98 99 99 return incompatible … … 121 121 """Setup appropriate variables""" 122 122 123 self.pq = PBSQuery()124 123 self.jobs = { } 125 124 self.dp = DataProcessor() 125 self.initPbsQuery() 126 127 def initPbsQuery( self ): 128 129 self.pq = None 130 self.pq = PBSQuery() 126 131 127 132 def getAttr( self, attrs, name ): … … 162 167 jobs = { } 163 168 169 self.initPbsQuery() 170 time.sleep( 1 ) 171 164 172 joblist = self.pq.getjobs() 165 173 … … 236 244 for jobid, jobattrs in jobs.items(): 237 245 238 gmetric_val = self.compileGmetricVal( jobid, jobattrs ) 239 240 for val in gmetric_val: 241 self.dp.multicastGmetric( 'TOGA-JOB-' + jobid, val ) 246 if jobattrs['status'] in [ 'Q', 'R' ]: 247 248 gmetric_val = self.compileGmetricVal( jobid, jobattrs ) 249 250 for val in gmetric_val: 251 self.dp.multicastGmetric( 'TOGA-JOB-' + jobid, val ) 242 252 243 253 def makeNodeString( self, nodelist ):
Note: See TracChangeset
for help on using the changeset viewer.