Expand description
Durable forge-cron wire types.
A forge cron is a scheduled prompt that fires into a project’s
session and survives forge restarts. It lives in the
mcp__forge__cron__* tool family alongside the agents family. The
list persists to the machine-local redb store for restart
durability; the single-instance boot guard makes one forge process
per config dir the sole writer, so the in-process mutex (not the
store) is the serialization point.
These are pure data shapes - the parsing, due-check, and catch-up
math live in forge-workspace::mcp::cron, and the persistence in
forge-workspace::store::cron.
Re-exports§
use std::time::SystemTime;🔒use serde::Deserialize;🔒use serde::Deserialize;🔒use serde::Serialize;🔒use serde::Serialize;🔒
Structs§
- Cron
Entry - One persisted forge cron. The scheduler’s due-check reads
next_fireuniformly for both kinds. - CronId
- Identifier for a durable forge cron entry. Minted at create time
(a UUIDv4 in the
cron__createhandler) and used bycron__deleteto address an entry. - Cron
Name - The schedule a fired prompt came from, keyed by the prompt’s own id.
Enums§
- Cron
Kind - What schedule drives a cron.
Functions§
- wake_
default 🔒 - A cron written before
wakeexisted woke its owner, its only behaviour.