mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Fix max_duration_in_seconds for the update_embeddings job
This commit is contained in:
parent
8e0bae894d
commit
105dbf49e4
1 changed files with 3 additions and 1 deletions
|
@ -320,7 +320,9 @@ def update_content_index():
|
|||
|
||||
@schedule.repeat(schedule.every(22).to(25).hours)
|
||||
def update_content_index_regularly():
|
||||
ProcessLockAdapters.run_with_lock(update_content_index, ProcessLock.Operation.UPDATE_EMBEDDINGS)
|
||||
ProcessLockAdapters.run_with_lock(
|
||||
update_content_index, ProcessLock.Operation.UPDATE_EMBEDDINGS, max_duration_in_seconds=60 * 60 * 2
|
||||
)
|
||||
|
||||
|
||||
def configure_search_types():
|
||||
|
|
Loading…
Reference in a new issue