Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
afd6b6de
Commit
afd6b6de
authored
Sep 13, 2021
by
Joao Pedro Lopes
Browse files
FTS-1710
Make overwrite_flag a ternary flag in the DB
parent
b9ea6f9c
Pipeline
#3016655
passed with stage
in 2 minutes and 33 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/fts3/model/job.py
View file @
afd6b6de
...
...
@@ -45,8 +45,8 @@ class Job(Base):
max_time_in_queue
=
Column
(
Integer
)
space_token
=
Column
(
String
(
255
))
internal_job_params
=
Column
(
String
(
255
))
overwrite_flag
=
Column
(
Flag
)
dst_file_report
=
Column
(
Flag
)
overwrite_flag
=
Column
(
TernaryFlag
)
job_finished
=
Column
(
DateTime
)
source_space_token
=
Column
(
String
(
255
))
copy_pin_lifetime
=
Column
(
Integer
)
...
...
@@ -92,8 +92,8 @@ class ArchivedJob(Base):
max_time_in_queue
=
Column
(
Integer
)
space_token
=
Column
(
String
(
255
))
internal_job_params
=
Column
(
String
(
255
))
overwrite_flag
=
Column
(
Flag
)
dst_file_report
=
Column
(
Flag
)
overwrite_flag
=
Column
(
TernaryFlag
)
job_finished
=
Column
(
DateTime
)
source_space_token
=
Column
(
String
(
255
))
copy_pin_lifetime
=
Column
(
Integer
)
...
...
src/fts3rest/fts3rest/lib/JobBuilder.py
View file @
afd6b6de
...
...
@@ -497,7 +497,7 @@ class JobBuilder(object):
elif
self
.
params
[
'overwrite_on_retry'
]:
overwrite_flag
=
'R'
else
:
overwrite_flag
=
Non
e
overwrite_flag
=
Fals
e
self
.
job
=
dict
(
job_id
=
self
.
job_id
,
...
...
Joao Pedro Lopes
@batistal
mentioned in commit
fts-rest-flask@5564a3ba
·
Oct 12, 2021
mentioned in commit
fts-rest-flask@5564a3ba
mentioned in commit fts-rest-flask@5564a3baf8e6133906c5838d51b142cbcf6ac797
Toggle commit list
Write
Preview
Markdown
is supported
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