fix: Add BookStack and Obsidian to periodic scheduler task_map

BookStack (`BOOKSTACK_CONNECTOR`) and Obsidian (`OBSIDIAN_CONNECTOR`)
were missing from the `task_map` in `schedule_checker_task.py`. This
caused periodic/scheduled indexing to silently skip these connectors
even when periodic sync was enabled in the UI.

The tasks (`index_bookstack_pages_task`, `index_obsidian_vault_task`)
exist and are registered in `connector_tasks.py` and routed to the
connectors queue in `celery_app.py` — they were just never wired into
the scheduler's dispatch map.

FIX #891

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
vorsengineer 2026-03-20 06:48:39 +00:00
parent 54e56e1b9a
commit 9254e95515

View file

@ -54,6 +54,7 @@ async def _check_and_trigger_schedules():
# Import all indexing tasks
from app.tasks.celery_tasks.connector_tasks import (
index_airtable_records_task,
index_bookstack_pages_task,
index_clickup_tasks_task,
index_composio_connector_task,
index_confluence_pages_task,
@ -68,6 +69,7 @@ async def _check_and_trigger_schedules():
index_linear_issues_task,
index_luma_events_task,
index_notion_pages_task,
index_obsidian_vault_task,
index_slack_messages_task,
)
@ -87,6 +89,8 @@ async def _check_and_trigger_schedules():
SearchSourceConnectorType.LUMA_CONNECTOR: index_luma_events_task,
SearchSourceConnectorType.ELASTICSEARCH_CONNECTOR: index_elasticsearch_documents_task,
SearchSourceConnectorType.WEBCRAWLER_CONNECTOR: index_crawled_urls_task,
SearchSourceConnectorType.BOOKSTACK_CONNECTOR: index_bookstack_pages_task,
SearchSourceConnectorType.OBSIDIAN_CONNECTOR: index_obsidian_vault_task,
SearchSourceConnectorType.GOOGLE_DRIVE_CONNECTOR: index_google_drive_files_task,
# Composio connector types
SearchSourceConnectorType.COMPOSIO_GOOGLE_DRIVE_CONNECTOR: index_composio_connector_task,