Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bbot_server/applets/_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def setup(self):
await self._setup()

# Reconcile indexes after all applets are set up
if self.is_native:
if self.is_native and bbcfg.reconcile_indexes:
await self.reconcile_all_indexes()

return True, ""
Expand Down
3 changes: 3 additions & 0 deletions bbot_server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ class BBOTServerSettings(BaseSettings):
user_store: StoreConfig
message_queue: MessageQueueConfig

# index management
reconcile_indexes: bool = True

# misc nested config we know about
agent: Optional[AgentConfig] = Field(default_factory=AgentConfig)
cli: Optional[CLIConfig] = Field(default_factory=CLIConfig)
Expand Down
2 changes: 2 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ services:
worker:
<<: *bbot-server-base
command: ["bbctl", "server", "start", "--worker-only"]
environment:
- BBOT_SERVER_RECONCILE_INDEXES=false
depends_on:
server:
condition: service_healthy
Expand Down
3 changes: 3 additions & 0 deletions helm/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ spec:
secretKeyRef:
name: {{ .Values.redis.auth.existingSecret | default (printf "%s-redis" .Release.Name) | quote }}
key: redis-password
# Index reconciliation is handled by Server, not the worker
- name: BBOT_SERVER_RECONCILE_INDEXES
value: "false"
# BBOT Server configuration
- name: BBOT_SERVER_URL
value: "http://{{ .Release.Name }}-server:{{ .Values.server.service.port }}/v1/"
Expand Down
Loading