Bump up server side content indexing interval to ~1 day

Reduce server side indexing load and API request failures
This commit is contained in:
Debanjum Singh Solanky 2024-01-25 13:31:13 +05:30
parent 0fba1e27c5
commit 1c52ddf792

View file

@ -275,7 +275,7 @@ def configure_middleware(app):
app.add_middleware(SessionMiddleware, secret_key=os.environ.get("KHOJ_DJANGO_SECRET_KEY", "!secret"))
@schedule.repeat(schedule.every(61).minutes)
@schedule.repeat(schedule.every(22).to(26).hours)
def update_search_index():
try:
logger.info("📬 Updating content index via Scheduler")