- Timestamp:
- 05/20/10 11:14:25 (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGES
r237 r240 1 =========== 4.1.2 2 * examples/new_rack_pbsmon.py now uses the new PBSQuery data 3 structure. 4 Author: Bas van der Vlies 5 6 * PBSQuery: 7 - fixed and error in get_jobs function for nodes. Did not 8 support new data structure and uniq did not work. 9 Authors: Shunjie Lau <eijnuhs at gmail dot com> and Bas van der Vlie 10 1 11 =========== 4.1.0 2 12 * Delete function pbs.version() replaced by -
trunk/debian/changelog
r237 r240 1 pbs-python (4.1.2-1) lenny; urgency=low 2 3 * See changes not yes finishedm but some important fixes 4 5 -- bas van der Vlies <basv@sara.nl> Thu, 20 May 2010 11:11:21 +0200 6 1 7 pbs-python (4.1.0-1) lenny; urgency=low 2 8 -
trunk/src/PBSQuery.py
r227 r240 418 418 def get_jobs(self, unique=None): 419 419 """Returns a list of the currently running job-id('s) on the node""" 420 jobstring = self.get_value('jobs') 421 if jobstring: 422 joblist = re.compile('[^\\ /]\\d+[^/.]').findall( jobstring ) 420 421 jobs = self.get_value('jobs') 422 if jobs: 423 if type(jobs) == type('string') : 424 jobs = re.compile('[^\\ /]\\d+[^/.]').findall( jobs ) 425 423 426 if not unique: 424 return job list427 return jobs 425 428 else: 426 return self.uniq(joblist) 429 job_re = re.compile('^(?:\d+/)?(.+)') 430 l = list() 431 432 for j in jobs: 433 jobstr = job_re.findall(j.strip())[0] 434 if jobstr not in l: 435 l.append(jobstr) 436 437 return l 438 427 439 return list() 428 440
Note: See TracChangeset
for help on using the changeset viewer.