removed trailing slash from render_annotations

This commit is contained in:
Alok Saldanha
2021-03-28 21:59:03 -04:00
parent 6f2b372d32
commit 5404a8b0f3
7 changed files with 30 additions and 70 deletions
+3 -8
View File
@@ -10,8 +10,7 @@
import logging
import time
from cellxgene_gateway import env
from cellxgene_gateway import util
from cellxgene_gateway import env, util
logger = logging.getLogger(__name__)
@@ -29,9 +28,7 @@ class PruneProcessCache:
def prune(self):
timestamp = util.current_time_stamp()
cutoff = timestamp - self.expire_seconds
processes_to_delete = [
p for p in self.cache.entry_list if p.timestamp < cutoff
]
processes_to_delete = [p for p in self.cache.entry_list if p.timestamp < cutoff]
processes_to_keep = [
p for p in self.cache.entry_list if not p.timestamp < cutoff
]
@@ -42,9 +39,7 @@ class PruneProcessCache:
for process in processes_to_delete:
try:
logger.info(
f"pruning process {process.pid} ({process.key.dataset})"
)
logger.info(f"pruning process {process.pid} ({process.key.dataset})")
self.cache.prune(process)
except Exception:
logger.exception(