From 49c3f72fa0f9f68e463d8a883b3d1786ec4c0768 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 26 Jan 2026 13:52:57 -0600 Subject: Replace TEMPORARY_DIRECTORY with SCRATCH_DIRECTORY Avoid using the terminology "TEMPORARY_DIRECTORY" which encourages use of the shared global mutable state in /tmp, that we want to move away from. Instead, we use "SCRATCH_DIRECTORY" which is an explicit specified directory for state needed for and by the gn-uploader application. --- uploader/phenotypes/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uploader/phenotypes') diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py index 5ade24d..b6a8c86 100644 --- a/uploader/phenotypes/views.py +++ b/uploader/phenotypes/views.py @@ -1105,7 +1105,7 @@ def rerun_qtlreaper(# pylint: disable=[unused-argument] _job_id = uuid.uuid4() _loglevel = logging.getLevelName(app.logger.getEffectiveLevel()).lower() - _workingdir = Path(app.config["TEMPORARY_DIRECTORY"]).joinpath("qtlreaper") + _workingdir = Path(app.config["SCRATCH_DIRECTORY"]).joinpath("qtlreaper") _workingdir.mkdir(exist_ok=True) command = [ sys.executable, -- cgit 1.4.1