Commit 82eae44e authored by Andrea Manzi's avatar Andrea Manzi
Browse files

FTS-1375: avoid enabling autosession reuse if the job is multireplica

parent 829350ed
Pipeline #705655 passed with stage
in 1 minute and 36 seconds
......@@ -517,7 +517,7 @@ class JobBuilder(object):
max_size_big_file = int(pylons.config.get('fts3.AutoSessionReuseMaxBigFileSize', 1073741824)) #1GB
max_big_files = int(pylons.config.get('fts3.AutoSessionReuseMaxBigFiles', 2)
if ((not self.is_multiple) and (auto_session_reuse == 'true') and (self.job['source_se']) and (self.job['dest_se']) and (job_type is None) and (len(self.files) > 1)) :
if ((self.is_multiple == False) and (auto_session_reuse == 'true') and (self.job['source_se']) and (self.job['dest_se']) and (job_type is None) and (len(self.files) > 1)) :
if len(self.files) > max_reuse_files:
self.job['job_type'] == 'N'
log.debug("The number of files "+str(len(self.files))+"is bigger than the auto maximum reuse files "+str(max_reuse_files))
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