Bug 1458 - la page clusterstatus ne répond plus

- slightly improved speed by preventing unnecessary requests of job array element details

However, the big hit in performance is still in the dictionary of jobs in JobsState
This commit is contained in:
Guillaume Raffy 2016-09-06 09:15:55 +00:00
parent c0fa682d20
commit 1cff78822e
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ class JobId:
def isJobArrayElement( self ): def isJobArrayElement( self ):
return (self.m_iJobArrayElementId != None) return (self.m_iJobArrayElementId != None)
def getMainId(self):
return self.m_iJobId
def asStr( self ): def asStr( self ):
strResult = '%s' % self.m_iJobId strResult = '%s' % self.m_iJobId
if self.isJobArrayElement(): if self.isJobArrayElement():