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

Merge branch 'develop' of https://gitlab.cern.ch:8443/fts/fts-rest into develop

parents 6b961b33 2c247776
Pipeline #484276 passed with stage
in 1 minute and 36 seconds
......@@ -512,10 +512,10 @@ class JobBuilder(object):
auto_session_reuse= pylons.config.get('fts3.AutoSessionReuse', 'false')
log.debug("AutoSessionReuse is "+str(auto_session_reuse)+ " job_type is" + str(job_type))
max_reuse_files = pylons.config.get('fts3.AutoSessionReuseMaxFiles', 1000)
max_size_small_file = pylons.config.get('fts3.AutoSessionReuseMaxSmallFileSize', 104857600) #100MB
max_size_big_file = pylons.config.get('fts3.AutoSessionReuseMaxBigFileSize', 1073741824) #1GB
max_big_files = pylons.config.get('fts3.AutoSessionReuseMaxBigFiles', 2)
max_reuse_files = int(pylons.config.get('fts3.AutoSessionReuseMaxFiles', 1000))
max_size_small_file = int(pylons.config.get('fts3.AutoSessionReuseMaxSmallFileSize', 104857600)) #100MB
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 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