mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(core): Increase Cron observability (#17626)
This commit is contained in:
@@ -843,8 +843,19 @@ type CronUnit = number | '*' | `*/${number}`;
|
||||
export type CronExpression =
|
||||
`${CronUnit} ${CronUnit} ${CronUnit} ${CronUnit} ${CronUnit} ${CronUnit}`;
|
||||
|
||||
type RecurrenceRule =
|
||||
| { activated: false }
|
||||
| {
|
||||
activated: true;
|
||||
index: number;
|
||||
intervalSize: number;
|
||||
typeInterval: 'hours' | 'days' | 'weeks' | 'months';
|
||||
};
|
||||
|
||||
export type Cron = { expression: CronExpression; recurrence?: RecurrenceRule };
|
||||
|
||||
export interface SchedulingFunctions {
|
||||
registerCron(cronExpression: CronExpression, onTick: () => void): void;
|
||||
registerCron(cron: Cron, onTick: () => void): void;
|
||||
}
|
||||
|
||||
export type NodeTypeAndVersion = {
|
||||
|
||||
Reference in New Issue
Block a user