mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-06 16:20:30 +00:00
trying to make travis work.
This commit is contained in:
1 parent
aad279685f
commit
dbc7021990
5 files changed
+20
-54
No files matched your search
@@ -70,6 +70,9 @@ def open_index(recreate=False):
|
||||
if exists_in(settings.INDEX_DIR) and not recreate:
|
||||
return open_dir(settings.INDEX_DIR)
|
||||
else:
|
||||
# TODO: this is not thread safe. If 2 instances try to create the index
|
||||
# at the same time, this fails. This currently prevents parallel
|
||||
# tests.
|
||||
return create_in(settings.INDEX_DIR, get_schema())
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user