openclaw/src/config/types.cron.ts
Advait Paliwal bc67af6ad8
cron: separate webhook POST delivery from announce (#17901)
* cron: split webhook delivery from announce mode

* cron: validate webhook delivery target

* cron: remove legacy webhook fallback config

* fix: finalize cron webhook delivery prep (#17901) (thanks @advaitpaliwal)

---------

Co-authored-by: Tyler Yust <TYTYYUST@YAHOO.COM>
2026-02-16 02:36:00 -08:00

19 lines
598 B
TypeScript

export type CronConfig = {
enabled?: boolean;
store?: string;
maxConcurrentRuns?: number;
/**
* Deprecated legacy fallback webhook URL used only for stored jobs with notify=true.
* Prefer per-job delivery.mode="webhook" with delivery.to.
*/
webhook?: string;
/** Bearer token for cron webhook POST delivery. */
webhookToken?: string;
/**
* How long to retain completed cron run sessions before automatic pruning.
* Accepts a duration string (e.g. "24h", "7d", "1h30m") or `false` to disable pruning.
* Default: "24h".
*/
sessionRetention?: string | false;
};