* 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>
19 lines
598 B
TypeScript
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;
|
|
};
|