mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-08 17:58:12 +08:00
#2 added a way to relaunch a cellxgene server
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user