Applied "Introduction of ItemSource interface" patch

This commit is contained in:
Alok Saldanha
2020-10-08 08:37:31 -04:00
parent d5246d4b4b
commit a6c13a7606
23 changed files with 858 additions and 509 deletions
+4 -6
View File
@@ -11,9 +11,9 @@ import logging
import subprocess
from flask_api import status
from cellxgene_gateway.cache_entry import CacheEntryStatus
from cellxgene_gateway.dir_util import make_annotations
from cellxgene_gateway.path_util import get_annotation_file_path, get_file_path
from cellxgene_gateway.env import (
enable_annotations,
enable_backed_mode,
@@ -45,8 +45,7 @@ class SubprocessBackend:
cmd = (
f"yes | {cellxgene_loc} launch {file_path}"
+ " --port "
+ str(port)
+ f" --port {port}"
+ " --host 127.0.0.1"
+ extra_args
)
@@ -57,13 +56,12 @@ class SubprocessBackend:
return cmd
def launch(self, cellxgene_loc, scripts, cache_entry):
cmd = self.create_cmd(
cellxgene_loc,
get_file_path(cache_entry.key),
cache_entry.key.file_path,
cache_entry.port,
scripts,
get_annotation_file_path(cache_entry.key),
cache_entry.key.annotation_file_path,
)
logging.getLogger("cellxgene_gateway").info(f"launching {cmd}")
process = subprocess.Popen(