@grackle-ai/plugin-scheduling
v0.108.4
Published
Scheduling plugin for Grackle — schedule CRUD handlers, cron reconciliation phase, and expression parsing
Maintainers
Readme
@grackle-ai/plugin-scheduling
Scheduling plugin for Grackle. Provides:
- Schedule CRUD handlers —
createSchedule,listSchedules,getSchedule,updateSchedule,deleteSchedulegRPC methods - Cron reconciliation phase — fires due schedules on each tick, creates tasks, enqueues for dispatch
- Schedule expression parsing — interval shorthand (
30s,5m,1h,1d) and standard 5-field cron syntax
Usage
import { createSchedulingPlugin } from "@grackle-ai/plugin-scheduling";
import { createCorePlugin } from "@grackle-ai/server";
import { loadPlugins } from "@grackle-ai/plugin-sdk";
const loaded = await loadPlugins([createCorePlugin(), createSchedulingPlugin()], ctx);The scheduling plugin declares dependencies: ["core"] so it is always loaded after the core plugin.
