Skip to content
GitLab
Menu
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
e03a7366
Commit
e03a7366
authored
Mar 19, 2018
by
Maria Arsuaga Rios
Browse files
Indicating job type
parent
d34e1079
Pipeline
#334946
passed with stage
in 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3rest/fts3rest/lib/JobBuilder.py
View file @
e03a7366
...
...
@@ -501,7 +501,7 @@ class JobBuilder(object):
max_reuse_files
=
pylons
.
config
.
get
(
'fts3.AutoSessionReuseMaxFiles'
,
1000
)
if
job_type
==
'Y'
and
len
(
self
.
files
)
>
=
max_reuse_files
:
if
job_type
==
'Y'
and
len
(
self
.
files
)
>
max_reuse_files
:
job_type
==
'N'
if
job_type
==
'Y'
and
(
self
.
job
[
'source_se'
]
and
self
.
job
[
'dest_se'
]):
...
...
@@ -511,7 +511,7 @@ class JobBuilder(object):
self
.
job
[
'job_type'
]
=
'N'
auto_session_reuse
=
pylons
.
config
.
get
(
'fts3.AutoSessionReuse'
,
'false'
);
log
.
debug
(
"AutoSessionReuse "
+
auto_session_reuse
)
log
.
debug
(
"AutoSessionReuse "
+
auto_session_reuse
+
" and job_type "
+
job_type
)
max_size_small_file
=
pylons
.
config
.
get
(
'fts3.AutoSessionReuseMaxFileSize'
,
104857600
)
#100MB
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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