fix: dispatch periodic BookStack indexing from the scheduler task_map

BOOKSTACK_CONNECTOR was missing from check_periodic_schedules' task_map,
so connectors with periodic indexing enabled fell through to the
"No task found" warning branch every minute and never synced.

Fixes #891

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
pelazas 2026-07-04 09:53:51 +02:00
parent aa7388f2f7
commit f44cb8a493
3 changed files with 131 additions and 0 deletions

View file

@ -48,6 +48,7 @@ async def _check_and_trigger_schedules():
# Live connectors (Linear, Slack, Jira, ClickUp, Airtable, Discord,
# Teams, Gmail, Calendar, Luma) use real-time tools instead.
from app.tasks.celery_tasks.connector_tasks import (
index_bookstack_pages_task,
index_confluence_pages_task,
index_crawled_urls_task,
index_elasticsearch_documents_task,
@ -58,6 +59,7 @@ async def _check_and_trigger_schedules():
task_map = {
SearchSourceConnectorType.NOTION_CONNECTOR: index_notion_pages_task,
SearchSourceConnectorType.BOOKSTACK_CONNECTOR: index_bookstack_pages_task,
SearchSourceConnectorType.GITHUB_CONNECTOR: index_github_repos_task,
SearchSourceConnectorType.CONFLUENCE_CONNECTOR: index_confluence_pages_task,
SearchSourceConnectorType.ELASTICSEARCH_CONNECTOR: index_elasticsearch_documents_task,