feat: add jitter support for scheduling to randomize execution times

This commit is contained in:
2025-12-06 14:08:32 +01:00
parent 777557f82c
commit 61b8b1a6af
3 changed files with 100 additions and 24 deletions

View File

@@ -202,6 +202,11 @@ export interface ConfigScheduling {
cron?: { // Legacy cron format (for backwards compatibility) - DEPRECATED
schedule?: string; // Cron expression - e.g., "0 9 * * *" for 9 AM daily
};
jitter?: {
enabled?: boolean; // If true, apply random +/- offset around scheduled time
minMinutesBefore?: number; // How many minutes before the scheduled time we may start (default 20)
maxMinutesAfter?: number; // How many minutes after the scheduled time we may start (default 30)
};
}
export interface ConfigErrorReporting {