add configuration for monthly aggregation job timing
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
5
main.go
5
main.go
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user