Fix S3 object store shutdown

This commit is contained in:
mvdbeek
2020-03-03 14:16:01 +01:00
parent 0a252ed4f1
commit 7a63fd1db2
+8
View File
@@ -716,6 +716,14 @@ class S3ObjectStore(ObjectStore, CloudConfigMixin):
def get_store_usage_percent(self):
return 0.0
def shutdown(self):
self.running = False
thread = getattr(self, 'cache_monitor_thread', None)
if thread:
log.debug("Shutting down thread")
self.sleeper.wake()
thread.join(5)
class SwiftObjectStore(S3ObjectStore):
"""