Repository navigation
feat: add the ai-queue-worker service [ENG-2181] #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). | |
|
|
||
| ## [Unreleased] | ||
|
|
||
| ### Compose File Changes | ||
| - New service `ai-queue-worker` in all three compose files. It runs the AI tasks (test explanations, chat) from the `ai-bmq` queue. Regenerate your compose file if you use custom templates. | ||
|
|
||
| ### Added | ||
| - Image `ai-queue-worker`. Pull or mirror it with the other images (see [Container Image Access](../docs/container-images.md)), and add the `currents/on-prem/ai-queue-worker` repository to your ECR policy. | ||
|
|
||
| ### Upgrade Notes | ||
| - `webhooks` no longer runs AI tasks. Without the `ai-queue-worker` service, AI explanations and chat stop. The service reads the same `.env` as the others; `LLM_PROVIDER_URL`, `LLM_API_KEY` and the other `LLM_*` settings apply to it (see AI Explanations and Chat in the [Configuration Reference](../docs/configuration.md)). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the profile off by default, this note needs to tell AI users to add |
||
| - If `.env` sets `AI_QUEUE_WORKER_ENABLED=true`, add `SLACK_AI_CALLBACK_WORKER_ENABLED=true` if you use Slack AI. In `webhooks` the first variable now only starts the Slack AI answer worker when the second is unset. The director still reads `AI_QUEUE_WORKER_ENABLED` to create the AI indexes in MongoDB, so keep it. | ||
|
|
||
| ## [2026-10-14-002] - 2026-10-27 | ||
|
|
||
| Image-only update on `2026-10-14-001`: no compose file or environment variable changes. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,6 +116,17 @@ services: | |
| CURRENTS_ENV: onprem | ||
| EMAIL_TRANSPORTER: smtp | ||
|
|
||
| # Runs the AI tasks from the ai-bmq queue. Reads the LLM_* settings from .env. | ||
| ai-queue-worker: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add a profile here so the service is off by default? ai-queue-worker:
profiles:
- aiThen regenerate with |
||
| image: ${DC_CURRENTS_IMAGE_REPOSITORY:-currents-}ai-queue-worker:${DC_CURRENTS_IMAGE_TAG:-staging} | ||
| restart: unless-stopped | ||
| networks: | ||
| - default | ||
| env_file: | ||
| - .env | ||
| environment: | ||
| CURRENTS_ENV: onprem | ||
|
|
||
| networks: | ||
| default: null | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the profile, this section should say how to turn the service on: a commented
# COMPOSE_PROFILES=ailine aboveLLM_PROVIDER_URLfor customers to uncomment, noting it combines withtlsasCOMPOSE_PROFILES=tls,ai. Same for the AI section indocs/configuration.md.