ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/Publisher.py
(Generate patch)

Comparing COMP/CRAB/python/Publisher.py (file contents):
Revision 1.37 by fanzago, Wed Jun 24 16:46:25 2009 UTC vs.
Revision 1.40 by spiga, Wed Jul 22 10:13:14 2009 UTC

# Line 75 | Line 75 | class Publisher(Actor):
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=''
# Line 92 | Line 92 | class Publisher(Actor):
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:
# Line 268 | Line 268 | class Publisher(Actor):
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)
# Line 331 | Line 336 | class Publisher(Actor):
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      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines