Commit 2a0f902c authored by Joao Pedro Lopes's avatar Joao Pedro Lopes
Browse files

FTS-1702 Added dst_file_report to database

parent 5f135ed0
......@@ -46,6 +46,7 @@ class Job(Base):
space_token = Column(String(255))
internal_job_params = Column(String(255))
overwrite_flag = Column(Flag)
dst_file_report = Column(Flag)
job_finished = Column(DateTime)
source_space_token = Column(String(255))
copy_pin_lifetime = Column(Integer)
......@@ -92,6 +93,7 @@ class ArchivedJob(Base):
space_token = Column(String(255))
internal_job_params = Column(String(255))
overwrite_flag = Column(Flag)
dst_file_report = Column(Flag)
job_finished = Column(DateTime)
source_space_token = Column(String(255))
copy_pin_lifetime = Column(Integer)
......
......@@ -47,6 +47,7 @@ DEFAULT_PARAMS = {
'gridftp': '',
'job_metadata': None,
'overwrite': False,
'dst_file_report': False,
'reuse': None,
'multihop': False,
'source_spacetoken': '',
......@@ -504,6 +505,7 @@ class JobBuilder(object):
priority=max(min(int(self.params['priority']), 5), 1),
space_token=self.params['spacetoken'],
overwrite_flag=_safe_flag(self.params['overwrite']),
dst_file_report=_safe_flag(self.params['dst_file_report']),
source_space_token=self.params['source_spacetoken'],
copy_pin_lifetime=int(self.params['copy_pin_lifetime']),
checksum_method=self.params['verify_checksum'],
......@@ -641,6 +643,7 @@ class JobBuilder(object):
priority=3,
space_token=self.params['spacetoken'],
overwrite_flag='N',
dst_file_report='N',
source_space_token=self.params['source_spacetoken'],
copy_pin_lifetime=-1,
checksum_method=None,
......
......@@ -77,6 +77,9 @@ paramSchema = {
'overwrite': {
'type': ['boolean', 'null']
},
'dst_file_report': {
'type': ['boolean', 'null']
},
'gridftp': {
'type': ['string', 'null'],
'title': 'Reserved for future usage'
......
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