@guidegraph/scheduler
v0.1.0-alpha.1
Published
Optional timer scheduling primitives for GuideGraph workflows.
Maintainers
Readme
@guidegraph/scheduler
Optional timer scheduling primitives for GuideGraph workflows.
GuideGraph core can model timers on workflow steps. This package turns active step timer definitions into scheduled timer records that a host app can poll or dispatch through its own worker system.
It does not run a background process by itself.
import { MemoryWorkflowTimerScheduler } from "@guidegraph/scheduler";
const scheduler = new MemoryWorkflowTimerScheduler();
await scheduler.scheduleInstanceTimers({
definition,
instance
});
const dueTimers = await scheduler.listDueTimers();