Why it matters
Do not run cron inside the chat process — a separate worker with its own concurrency limits survives deploys and avoids blocking ACKs.
Practical steps
- Put schedules in a real scheduler (system cron, Cloud Scheduler, queue ETA).
- Share code via library, not via the HTTP process.
- Make jobs idempotent for overlapping runs.
- Surface next-run times on the status page.
- Cancel jobs when a tenant uninstalls.
Watch out for
- setInterval in the webhook web process.
- Jobs that DM every user without rate limits.