mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-23 13:52:37 +00:00
ensure the llm_dir exists for the write_store too
This commit is contained in:
1 parent
3c2ef25edd
commit
a5f7a5561d
1 file changed
+1
@@ -80,6 +80,7 @@ def write_store():
|
||||
this context manager to serialise concurrent Celery writers.
|
||||
Read paths use ``get_vector_store()`` directly — no lock needed.
|
||||
"""
|
||||
settings.LLM_INDEX_DIR.mkdir(parents=True, exist_ok=True)
|
||||
with FileLock(settings.LLM_INDEX_LOCK):
|
||||
yield get_vector_store()
|
||||
|
||||
|
||||
Reference in new issue
Block a user