solar: Update collection cron time range

This commit is contained in:
Sangeeth Sudheer 2025-04-12 19:48:34 +05:30
parent 069d07b7bd
commit bab10073d3
Signed by: x
GPG Key ID: F6D06ECE734C57D1

View File

@ -53,7 +53,7 @@ func main() {
myCron := cron.New()
myCron.AddFunc("0 0 18 * * *", solar.CronSendDailyReport)
myCron.AddFunc("0 */15 * * * *", solar.CronCollectMetrics)
myCron.AddFunc("0 */15 5-19 * * *", solar.CronCollectMetrics)
myCron.Start()
// Listen to Ctrl+C (you can also do something else that prevents the program from exiting)