projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe0d850
)
9463: Setting up the checkpointer thread as a daemon so that it finishes when the...
author
Lucas Di Pentima <lucas@curoverse.com>
Fri, 19 Aug 2016 15:38:24 +0000
(12:38 -0300)
committer
Lucas Di Pentima <lucas@curoverse.com>
Fri, 19 Aug 2016 15:38:24 +0000
(12:38 -0300)
sdk/python/arvados/commands/put.py
patch
|
blob
|
history
diff --git
a/sdk/python/arvados/commands/put.py
b/sdk/python/arvados/commands/put.py
index 4034173681503767d3ba45beb7da3ae940dbf237..1a274104fc76c5ec6449dee5b8387fe3d478170b 100644
(file)
--- a/
sdk/python/arvados/commands/put.py
+++ b/
sdk/python/arvados/commands/put.py
@@
-320,6
+320,7
@@
class ArvPutUploadJob(object):
"""
Start supporting thread & file uploading
"""
+ self._checkpointer.daemon = True
self._checkpointer.start()
try:
for path in self.paths:
@@
-472,7
+473,7
@@
class ArvPutUploadJob(object):
output = self._my_collection().open(filename, 'w')
self._write(source_fd, output)
output.close()
-
+
def _write(self, source_fd, output):
while True:
data = source_fd.read(arvados.config.KEEP_BLOCK_SIZE)