Commit e1453abd authored by Andrea Manzi's avatar Andrea Manzi
Browse files

FTS-1409: do not enable session reuse for staging jobs

parent a6f6a8cb
......@@ -518,7 +518,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 auto_session_reuse == 'true' and not self.is_multiple and len(self.files) > min_reuse_files:
if auto_session_reuse == 'true' and not self.is_multiple and not self.is_bringonline and len(self.files) > min_reuse_files:
if ((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'
......
Markdown is supported
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