Commit cbac3586 authored by Aris Angelogiannopoulos's avatar Aris Angelogiannopoulos
Browse files

FTS-1259 Cast all numerics to ints when reading from config

parent bfd137c6
......@@ -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