diff options
| author | Frederick Muriuki Muriithi | 2026-01-26 13:52:57 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-01-26 14:11:38 -0600 |
| commit | 49c3f72fa0f9f68e463d8a883b3d1786ec4c0768 (patch) | |
| tree | cd407ac9bb8411eb3df9d8a2d522c56ae21bff44 /uploader/phenotypes/views.py | |
| parent | 79386454b1d87d5b4c1ace22e7b272a71fd205be (diff) | |
| download | gn-uploader-49c3f72fa0f9f68e463d8a883b3d1786ec4c0768.tar.gz | |
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.
Diffstat (limited to 'uploader/phenotypes/views.py')
| -rw-r--r-- | uploader/phenotypes/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
