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
f249b440
Commit
f249b440
authored
Aug 20, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3rest/fts3rest/lib/JobBuilder.py
View file @
f249b440
...
...
@@ -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'
...
...
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