#65 add environment variable to control how long cellxgene processes can remain idle

This commit is contained in:
Alok Saldanha
2022-06-20 21:46:19 -04:00
parent 36c0a4d3d7
commit 0cd551382e
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ key = CacheKey(
class TestPruneProcessCache(unittest.TestCase):
@patch("cellxgene_gateway.util.current_time_stamp", new=lambda: 0)
@patch("cellxgene_gateway.env.ttl", new="10")
@patch("cellxgene_gateway.env.expire_seconds", new=10)
@patch("cellxgene_gateway.cache_entry.CacheEntry")
@patch("cellxgene_gateway.cache_entry.CacheEntry")
def test_GIVEN_one_old_one_new_THEN_prune_old(self, old, new):