Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
67bbbff0
Commit
67bbbff0
authored
Feb 14, 2017
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3rest/fts3config.test
View file @
67bbbff0
...
...
@@ -5,7 +5,7 @@ DbType=sqlite
DbUserName
=
DbPassword
=
DbConnectString
=
AutoSessionReuse
=
false
Alias
=
Testing
Infosys
=
lcg
-
bdii
.
cern
.
ch
:
2170
AuthorizedVO
=
dteam
;
*
...
...
src/fts3rest/fts3rest/lib/JobBuilder.py
View file @
67bbbff0
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment