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
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