Commit 71bb387b authored by Maria Arsuaga Rios's avatar Maria Arsuaga Rios
Browse files

FTS-995:Timeout is ignored in CLI

parent 703b8e21
Pipeline #146193 passed with stage
in 16 seconds
......@@ -118,6 +118,8 @@ class JobSubmitter(Base):
help='pin lifetime of the copy in seconds.')
self.opt_parser.add_option('--bring-online', dest='bring_online', type='long', default=None,
help='bring online timeout in seconds.')
self.opt_parser.add_option('--timeout', dest='timeout', type='long', default=None,
help='transfer timeout in seconds.')
self.opt_parser.add_option('--fail-nearline', dest='fail_nearline', default=False, action='store_true',
help='fail the transfer is the file is nearline.')
self.opt_parser.add_option('--dry-run', dest='dry_run', default=False, action='store_true',
......@@ -206,6 +208,7 @@ class JobSubmitter(Base):
self._build_transfers(),
checksum=self.checksum,
bring_online=self.options.bring_online,
timeout = self.options.timeout,
verify_checksum=checksum_mode[0],
spacetoken=self.options.destination_token,
source_spacetoken=self.options.source_token,
......@@ -268,6 +271,7 @@ class JobSubmitter(Base):
self._build_transfers(),
checksum=self.checksum,
bring_online=self.options.bring_online,
timeout = self.options.timeout,
verify_checksum=checksum_mode,
spacetoken=self.options.destination_token,
source_spacetoken=self.options.source_token,
......
Supports Markdown
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