Fix max_duration_in_seconds for the update_embeddings job

This commit is contained in:
sabaimran 2024-04-17 13:00:18 +05:30
parent 8e0bae894d
commit 105dbf49e4

View file

@ -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():