forgex 0.10.2

CLI and runtime for the Forge full-stack framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Context API: ctx.db(), ctx.dispatch_job(...). Crons are leader-only.
// Schedule format: 6-field cron (sec min hour day month weekday). Validated at compile time.

#[allow(unused_imports)]
use forge::prelude::*;

#[forge::cron(schedule = "0 0 * * * *")]
pub async fn {{name}}(ctx: &CronContext) -> Result<()> {
    let _ = ctx;
    // TODO: replace with the work to perform on each tick
    Ok(())
}