Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
feat(config): add enable_watch_scheduler toggle for read-only replicas (#3704)
dingbenb65f11852177
diff --git a/openviking/service/core.py b/openviking/service/core.pyindex 5953e7543..0e7a3ae01 100644--- a/openviking/service/core.py+++ b/openviking/service/core.py@@ -429,10 +429,11 @@ class OpenVikingService:)await self._queue_manager.prepare_task_tracking(get_task_tracker())- # Do not let watches produce queue work while task ownership is being- # rebuilt from QueueFS. Consumers start only after the scheduler is ready.- await self._watch_scheduler.start()- logger.info("WatchScheduler started")+ if self._config.enable_watch_scheduler:+ await self._watch_scheduler.start()+ logger.info("WatchScheduler started")+ else:+ logger.info("WatchScheduler disabled by config (enable_watch_scheduler=false)")if self._queue_manager:self._queue_manager.start()diff --git a/openviking_cli/utils/config/open_viking_config.py b/openviking_cli/utils/config/open_viking_config.pyindex 65363b9e1..bb2f3edb7 100644--- a/openviking_cli/utils/config/open_viking_config.py+++ b/openviking_cli/utils/config/open_viking_config.py@@ -247,6 +247,15 @@ class OpenVikingConfig(BaseModel):description="External Connector service configuration for data import",)+ enable_watch_scheduler: bool = Field(+ default=True,+ description=(+ "Whether to start the background WatchScheduler that periodically re-processes "+ "watched resources. Disable on read-only replicas that share a writer's data "+ "so only the writer runs the watch/refresh background loop."+ ),+ )+auto_generate_l0: bool = Field(default=True, description="Automatically generate L0 (abstract) if not provided")