def __init__(self, job_info):
     
     ARDADashboardLCG.__init__(self, job_info)
     if self._complete == False:
         return
     
     self._complete = False
     if type(job_info) is DictionaryType:
         # we are on the worker node
         try:
             self._complete = True
         except KeyError,msg:
             return
    def __init__(self, job_info):

        ARDADashboardLCG.__init__(self, job_info)
        if self._complete == False:
            return

        self._complete = False
        if type(job_info) is DictionaryType:
            # we are on the worker node
            try:
                self.application = job_info["application"]
                self.applicationVersion = job_info["applicationVersion"]
                self.dataset = job_info["dataset"][0]
                self.activity = job_info["activity"]
                self._complete = True
            except KeyError, msg:
                return
Example #3
0
    def __init__(self, job_info):

        ARDADashboardLCG.__init__(self, job_info)
        if self._complete == False:
            return

        self._complete = False
        if isinstance(job_info, DictionaryType):
            # we are on the worker node
            try:
                self.application = job_info['application']
                self.applicationVersion = job_info['applicationVersion']
                self.dataset = job_info['dataset'][0]
                self.activity = job_info['activity']
                self._complete = True
            except KeyError as msg:
                return

        else:
            # we are on the client. We get the info from the job_info
            # (which is a job)

            job = job_info

            self.application = job.application._name

            try:
                self.applicationVersion = job.application.atlas_release
            except AttributeError:
                self.applicationVersion = ''

            # activity
            if self.application in ['Athena', 'AthenaMC', 'AMAAthena']:
                self.activity = 'analysis'
            else:
                activity = 'unknown'

            # dataset name
            try:
                self.dataset = job.inputdata.dataset[0]
            except AttributeError:
                self.dataset = 'unknown'
            except IndexError:
                self.dataset = 'unknown'

            self._complete = True
    def __init__(self, job_info):

        ARDADashboardLCG.__init__(self, job_info)
        if self._complete == False:
            return

        self._complete = False
        if isinstance(job_info, DictionaryType):
            # we are on the worker node
            try:
                self._complete = True
            except KeyError as msg:
                return

        else:
            # we are on the client. We get the info from the job_info
            # (which is a job)

            self._complete = True
 def getJobInfo(self):
     if self._complete:
         job_info = ARDADashboardLCG.getJobInfo(self)
         job_info["application"] = self.application
         job_info["applicationVersion"] = self.applicationVersion
         job_info["dataset"] = self.dataset
         job_info["activity"] = self.activity
         self._logger.debug(job_info)
         return job_info
     else:
         self._logger.debug("incomplete job info")
         return {}
Example #6
0
 def getJobInfo(self):
     if self._complete:
         job_info = ARDADashboardLCG.getJobInfo(self)
         job_info['application'] = self.application
         job_info['applicationVersion'] = self.applicationVersion
         job_info['dataset'] = self.dataset
         job_info['activity'] = self.activity
         self._logger.debug(job_info)
         return job_info
     else:
         self._logger.debug('incomplete job info')
         return {}
 def getSandboxModules(self):
     import Ganga.Lib.MonitoringServices.ARDADashboard.LCG
     return ARDADashboardLCG.getSandboxModules(self) + [Ganga.Lib.MonitoringServices.ARDADashboard.LCG.ARDADashboardLCGExecutable]