From 1cff78822ec1797a4302a7fca9474aa6519e90eb Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Tue, 6 Sep 2016 09:15:55 +0000 Subject: [PATCH] =?UTF-8?q?Bug=201458=20-=20la=20page=20clusterstatus=20ne?= =?UTF-8?q?=20r=C3=A9pond=20plus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- ClusterController/Job.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ClusterController/Job.py b/ClusterController/Job.py index 6cb2bb8..7b16064 100644 --- a/ClusterController/Job.py +++ b/ClusterController/Job.py @@ -50,6 +50,9 @@ class JobId: def isJobArrayElement( self ): return (self.m_iJobArrayElementId != None) + def getMainId(self): + return self.m_iJobId + def asStr( self ): strResult = '%s' % self.m_iJobId if self.isJobArrayElement():