mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-06-06 13:49:44 +00:00
ensure the llm_dir exists for the write_store too
This commit is contained in:
@@ -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