mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 05:40:17 +00:00
Fix max_duration_in_seconds for the update_embeddings job
This commit is contained in:
@@ -320,7 +320,9 @@ def update_content_index():
|
|||||||
|
|
||||||
@schedule.repeat(schedule.every(22).to(25).hours)
|
@schedule.repeat(schedule.every(22).to(25).hours)
|
||||||
def update_content_index_regularly():
|
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():
|
def configure_search_types():
|
||||||
|
|||||||
Reference in New Issue
Block a user