Poll dispatch_due in the worker so scheduled posts fire.
CI / test (pull_request) Successful in 16s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-24 10:04:24 -05:00
co-authored by Cursor
parent 96741bc0c8
commit e79577811e
7 changed files with 113 additions and 8 deletions
+5 -4
View File
@@ -25,13 +25,14 @@ uv sync
cd site
uv run python manage.py migrate
uv run python manage.py runserver
# optional: docker compose up # web + postgres (hot reload)
# optional worker: docker compose --profile worker up worker
# optional: docker compose up # web + postgres + worker (hot reload)
```
Docker compose mounts `./site` into the container and runs Django `runserver` when
`DJANGO_ENV=dev` (the default). Edit Python/templates → auto-reload; no image rebuild.
Rebuild only when Dockerfile / deps (`pyproject.toml`, `uv.lock`) change:
`DJANGO_ENV=dev` (the default). The **worker** service polls `dispatch_due` every 15s so
scheduled campaigns and social posts fire without a manual command. Edit Python/templates
→ auto-reload; no image rebuild.
Rebuild only when Dockerfile, entrypoint scripts, or deps (`pyproject.toml`, `uv.lock`) change:
```bash
docker compose up --build