Commit 67bbbff0 authored by Maria Arsuaga Rios's avatar Maria Arsuaga Rios
Browse files

FTS:893:Create Auto session reuse configuration parameter (disable by default)

parent a95f3fba
Pipeline #83004 passed with stage
in 15 seconds
......@@ -5,7 +5,7 @@ DbType=sqlite
DbUserName=
DbPassword=
DbConnectString=
AutoSessionReuse=false
Alias=Testing
Infosys=lcg-bdii.cern.ch:2170
AuthorizedVO=dteam;*
......
......@@ -19,6 +19,7 @@ import socket
import time
import types
import uuid
import pylons
from datetime import datetime
from urlparse import urlparse
......@@ -501,7 +502,8 @@ class JobBuilder(object):
if job_type == 'N' and not self.is_multiple:
self.job['job_type'] = 'N'
if (self.job['source_se'] and self.job['dest_se'] and (job_type is None) and (len(self.files) > 1)) :
auto_session_reuse = pylons.config['fts3.AutoSessionReuse']
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)) :
small_files = 0
min_small_files = len(self.files) - 2
for file in self.files:
......
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