Commit 8ef15892 authored by Maria Arsuaga Rios's avatar Maria Arsuaga Rios
Browse files

testing reuse

parent 8e014979
......@@ -495,11 +495,12 @@ class JobBuilder(object):
if (self.job['source_se'] and self.job['dest_se']) :
small_files = 0
for file in self.files:
log.debug(file['user_filesize'])
if (file['user_filesize']) < 104857600:
small_files +=1
if small_files >= len(self.files) - 2:
self.job['reuse_job'] = 'Y'
log.info("Reuse jobs with "+small_files+" small files up to "+len(self.files)+" total files")
# if small_files >= len(self.files) - 2:
# self.job['reuse_job'] = 'Y'
# log.debug("Reuse jobs with "+small_files+" small files up to "+len(self.files)+" total files")
def _populate_deletion(self, deletion_dict):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment