All product workers

Swarm scheduler

swarmmm-scheduler

Cron coordinator: provisioning repair, content topics, Aimediarank authority sweeps.

Runs hourly. Enqueues content generation, geo-research (when tenant BYOK + schedule), and monthly geo-reports. Uses atomic topic claims so legacy Pages schedule overlap cannot duplicate a job.

Source

Path
apps/swarmmm-scheduler
Entry
src/index.ts
Config
wrangler.toml

Bindings (summary)

  • DB (D1)
  • SWARM_PROVISIONING_SECRET
  • cron: 0 * * * *
  • producers: content, geo-research, geo-reports

Set real IDs, buckets, and secrets in the Cloudflare dashboard or via wrangler secret put to match this repo’s wrangler file.

Commands

cd apps/swarmmm-scheduler && npm run dev
cd apps/swarmmm-scheduler && npm run deploy