Skip to main content

Module cron

Module cron 

Source
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§

CronEntry
One persisted forge cron. The scheduler’s due-check reads next_fire uniformly for both kinds.
CronId
Identifier for a durable forge cron entry. Minted at create time (a UUIDv4 in the cron__create handler) and used by cron__delete to address an entry.
CronName
The schedule a fired prompt came from, keyed by the prompt’s own id.

Enums§

CronKind
What schedule drives a cron.

Functions§

wake_default 🔒
A cron written before wake existed woke its owner, its only behaviour.