Skip to content
Snippets Groups Projects
Verified Commit d2821a65 authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Replace PONOS_DATA_DIR with the existing PONOS_DATA

parent c592afd3
No related branches found
No related tags found
1 merge request!81Replace PONOS_DATA_DIR with the existing PONOS_DATA
Pipeline #78385 passed
......@@ -145,7 +145,7 @@ class BaseWorker(object):
merge_parents_cache(
task["parents"],
self.cache_path,
data_dir=os.environ.get("PONOS_DATA_DIR", "/data"),
data_dir=os.environ.get("PONOS_DATA", "/data"),
chunk=os.environ.get("ARKINDEX_TASK_CHUNK"),
)
......
......@@ -151,7 +151,7 @@ def test_merge_from_worker(
assert CachedTranscription.select().count() == 0
# Configure worker with a specific data directory
monkeypatch.setenv("PONOS_DATA_DIR", str(tmpdir))
monkeypatch.setenv("PONOS_DATA", str(tmpdir))
mock_base_worker_with_cache.configure()
# Then we have 2 elements and a transcription
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment