#2 added a way to relaunch a cellxgene server

This commit is contained in:
Alok Saldanha
2019-09-17 10:13:20 -04:00
parent a6c9456786
commit 2b259ab6b5
4 changed files with 22 additions and 19 deletions
+9
View File
@@ -73,6 +73,15 @@ class CacheEntry:
else:
self.all_output += output
def terminate(self, process):
if pid != None and self.status != "terminated":
p = psutil.Process(pid)
p.terminate()
p = psutil.Process(pid + 2)
p.terminate()
self.status = "terminated"
def serve_content(self, path):
dataset = self.dataset