Skip to content

Commit f7834e7

Browse files
docs: update architecture.md for scheduler removal
Remove scheduler.py and scheduler.sh sections (deleted in previous commit). Add dokploy cron schedule to deployment section. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4f03f49 commit f7834e7

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

docs/architecture.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,6 @@ The central web server that wires everything together.
9898
via `python-jose`). Requests from whitelisted IPs (localhost, 127.0.0.1) bypass
9999
auth. A `UserInfo` PonyORM entity stores bcrypt-hashed credentials in SQLite.
100100

101-
### scheduler.py -- Background Job Runner
102-
103-
Uses APScheduler (`BackgroundScheduler`) to periodically call the FastAPI endpoints
104-
internally. Runs token refresh every 30 minutes and the Slack posting job on a cron
105-
schedule. Hosts its own uvicorn instance on port 3001.
106-
107-
### scheduler.sh -- Shell-based Scheduler
108-
109-
A POSIX shell alternative to `scheduler.py`. Authenticates against the FastAPI
110-
`/token` endpoint with curl, then hits `/api/slack` or `/api/events`. Used for
111-
cron-based deployments.
112-
113101
### capture_groups.py -- Group Discovery (GraphQL)
114102

115103
Queries the Meetup GraphQL API (`keywordSearch`) to discover technology groups in
@@ -159,6 +147,13 @@ Multi-stage build (`Dockerfile`):
159147
The `docker.yml` workflow builds multi-arch images (amd64, arm64) on pushes to
160148
`main` or version tags and publishes to `ghcr.io`.
161149

150+
### Dokploy Cron Schedule
151+
152+
The `dokploy.yml` defines a `weekday-run` schedule that posts to Slack weekdays at
153+
9 AM Central. The cron job runs inside the application container and hits the
154+
`/api/slack` endpoint via `httpx` on `localhost:3000`, targeting the `okc-metro`
155+
channel.
156+
162157
### Docker Compose
163158

164159
Single-service compose file for local development. Mounts `./app` as a volume,

0 commit comments

Comments
 (0)