Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/triggers / / cron
Function: cron()
ts
function cron(
id,
expression,
callback,
options?): TriggerDeclaration;Defined in: packages/triggers/src/index.ts:75
Build a cron trigger declaration. The expression is validated eagerly — a malformed cron expression throws at registration time, not at first fire.
Parameters
| Parameter | Type |
|---|---|
id | string |
expression | string |
callback | TriggerCallback |
options | TriggerOptions |