add configuration for monthly aggregation job timing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-28 09:04:16 +11:00
parent ee01d8deac
commit c566456ebd
3 changed files with 6 additions and 1 deletions

View File

@@ -228,7 +228,10 @@ func main() {
}
logger.Debug("Created vcenter inventory aggregation cron job", "job", job4.ID(), "starting_at", startsAt4)
monthlyCron := "0 0 1 * *"
monthlyCron := strings.TrimSpace(s.Values.Settings.MonthlyAggregationCron)
if monthlyCron == "" {
monthlyCron = "10 3 1 * *"
}
logger.Debug("Setting monthly aggregation cron schedule", "cron", monthlyCron)
job5, err := c.NewJob(
gocron.CronJob(monthlyCron, false),