def run(self, args, variables): self.__text = """This command is deprecated and will be replaced with a newer version soon.""" return False self.__prepare(args, variables) campaign = self.__variables['campaign'] chosen_dataset = self.__variables['dataset'] # create tarball self._create_tar_file(args, variables) datasets = [chosen_dataset] if chosen_dataset.lower() == 'all': from crab.datasets import create_sample_list samples = create_sample_list() if campaign in samples: datasets = samples[campaign] else: LOG.error( 'Cannot find datasets for campaign {0}'.format(campaign)) return False for dataset in datasets: self.__run_dataset(campaign, dataset) # to check status: msg = 'To check the status you can run\n' if len(self.__outdirs) == 1: msg += 'DAGstatus {0}/diamond.status -s'.format(self.__outdirs[0]) else: msg += 'DAGstatus workspace/condor/*/diamond.status -s' LOG.info(msg) # ntp condor status return True
def get_datasets(campaign): from crab.datasets import create_sample_list datasets = [] samples = create_sample_list() if campaign in samples: datasets = samples[campaign] else: LOG.error('Cannot find datasets for campaign {0}'.format(campaign)) return False return datasets
def get_datasets(campaign): from crab.datasets import create_sample_list datasets = [] samples = create_sample_list() if campaign in samples: datasets = samples[campaign] else: LOG.error( 'Cannot find datasets for campaign {0}'.format(campaign)) return False return datasets
def run(self, args, variables): self.__prepare(args, variables) samples = create_sample_list() format = self.__variables['format'] if format == 'dict': self.__text = datasets_to_str(samples) if 'campaign' in self.__variables: restrict_c = self.__variables['campaign'] self.__text = datasets_to_str(samples[restrict_c]) else: self.__create_table(samples) return True