flora is a fast and secure runtime that lets you write discord bots for your servers, with a rich TypeScript SDK, without worrying about running infrastructure. [mirror]
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at trunk 17 lines 633 B view raw view rendered
1--- 2outline: deep 3--- 4 5## Cron scheduler 6 7The runtime includes a per-worker cron scheduler that fires every second to check for due jobs. Cron jobs registered via `cron()` in scripts are: 8 9- Stored in a per-worker registry keyed by guild ID 10- Evaluated using the `croner` crate (POSIX/Vixie-cron compatible) 11- Dispatched as synthetic events (`__cron:<name>`) through the same dispatch path as Discord events 12- Subject to their own timeout (`cron_timeout_secs`, default 5s) 13- Limited per guild (`max_cron_jobs`, default 32) 14 15Cron jobs are cleared automatically when a guild script is redeployed or unloaded. 16 17...document others later