75 |
|
self.dataset_to_import.append(dataset) |
76 |
|
### |
77 |
|
|
78 |
< |
self.import_all_parents = cfg_params.get('USER.publish_with_import_all_parents',0) |
78 |
> |
self.import_all_parents = cfg_params.get('USER.publish_with_import_all_parents',1) |
79 |
|
self.skipOcheck=cfg_params.get('CMSSW.publish_zero_event',0) |
80 |
|
|
81 |
|
self.SEName='' |
92 |
|
dbsWriter = DBSWriter(self.DBSURL,level='ERROR') |
93 |
|
|
94 |
|
try: |
95 |
< |
if (self.import_all_parents=='1'): |
95 |
> |
if (self.import_all_parents==1): |
96 |
|
common.logger.info("--->>> Importing all parents level") |
97 |
|
dbsWriter.importDataset(globalDBS, datasetpath, self.DBSURL) |
98 |
|
else: |
268 |
|
|
269 |
|
file_list = glob.glob(self.resDir+"crab_fjr*.xml") |
270 |
|
## Select only those fjr that are succesfull |
271 |
+ |
if (len(file_list)==0): |
272 |
+ |
common.logger.info("--->>> "+self.resDir+" empty: no file to publish on DBS") |
273 |
+ |
self.exit_status = '1' |
274 |
+ |
return self.exit_status |
275 |
+ |
|
276 |
|
good_list=[] |
277 |
|
for fjr in file_list: |
278 |
|
reports = readJobReport(fjr) |
336 |
|
return self.exit_status |
337 |
|
|
338 |
|
else: |
339 |
< |
common.logger.info("--->>> "+self.resDir+" empty: no file to publish on DBS") |
339 |
> |
common.logger.info("--->>> No valid files to publish on DBS. Your jobs do not report exit codes = 0") |
340 |
|
self.exit_status = '1' |
341 |
|
return self.exit_status |
342 |
|
|