Auto-start monica_site dj-queue worker on adama deploy.
Sync runner checkout / sync (pull_request) Successful in 6s

Campaign sends stay Queued without the worker; wire compose_profiles into
django deploy so adama brings up the singleton with web (closes #17).
This commit is contained in:
2026-08-08 13:59:27 -05:00
parent cc503988c0
commit 9a0cbf80d9
6 changed files with 20 additions and 15 deletions
+2 -3
View File
@@ -110,9 +110,8 @@ app_catalog:
compose_file: docker-compose.prod.yml
web_service: web
migrate_cmd: "uv run python manage.py migrate --noinput"
# dj-queue worker (compose profile `worker`) is a singleton — start only on
# adama after deploy: docker compose -f docker-compose.prod.yml --profile worker up -d
# Catalog deploys web + migrate only; worker is manual / ops step.
# dj-queue worker = compose profile `worker` (singleton). Deploy starts it
# via host_apps.compose_profiles on adama only (see host_vars/adama.yml).
# Deploy filter vars. CI passes these; manual runs may leave them undefined
# to (re)deploy every app listed in the host's host_apps.