Changeset 535
- Timestamp:
- Oct 10, 2006, 6:25:19 AM (18 years ago)
- Location:
- trunk/python/Rappture
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/Rappture/__init__.py
r43 r535 4 4 from number import number 5 5 from result import result 6 import queue as queue 7 import tools as tools -
trunk/python/Rappture/queue.py
r529 r535 216 216 self.executable(executable) 217 217 self.execArgs(execArgs) 218 self.queue("@vma118.punch.purdue.edu") 218 nanoHUBQ = os.getenv("NANOHUB_PBS_QUEUE") 219 if nanoHUBQ is None : 220 self.queue("@vma118.punch.purdue.edu") 221 else: 222 self.queue(nanoHUBQ) 219 223 220 224 def __initPbsScriptVars__(self): … … 317 321 retVal = self._pbs_msgs['DEFAULT'] 318 322 if self._jobId: 319 cmdOutput = getCommandOutput("qstat -a | grep \'^ *%s\'" % (self._jobId)) 323 nanoHUBQ = self.queue() 324 if nanoHUBQ != "": 325 atLocation = nanoHUBQ.find('@') 326 if atLocation > -1: 327 pbsServer = nanoHUBQ[atLocation+1:] 328 329 if pbsServer == '': 330 cmd = "qstat -a | grep \'^ *%s\'" % (self._jobId) 331 else: 332 cmd = "qstat @%s -a | grep \'^ *%s\'" % (pbsServer,self._jobId) 333 cmdOutput = getCommandOutput(cmd) 334 320 335 # parse a string that should look like this: 321 336 # 32049.hamlet.rc kearneyd ncn run.21557. 6104 8 8 -- 24:00 R 00:00
Note: See TracChangeset
for help on using the changeset viewer.