mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-03 09:18:12 +08:00
#65 add environment variable to control how long cellxgene processes can remain idle
This commit is contained in:
@@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
|
||||
class PruneProcessCache:
|
||||
def __init__(self, cache):
|
||||
self.cache = cache
|
||||
self.expire_seconds = 3600 if env.ttl is None else int(env.ttl)
|
||||
self.expire_seconds = env.expire_seconds
|
||||
|
||||
def __call__(self):
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user