Commit afd6b6de authored by Joao Pedro Lopes's avatar 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
......@@ -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)
......
......@@ -497,7 +497,7 @@ class JobBuilder(object):
elif self.params['overwrite_on_retry']:
overwrite_flag = 'R'
else:
overwrite_flag = None
overwrite_flag = False
self.job = dict(
job_id=self.job_id,
......
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