I have these 4 Cron schedules in my config file
CronProcess1 = "30 13 */15 * *" # every 15 days at 1:30pm
CronProcess1Reminder = "30 13 */3 * *" # every 3 days at 1:30pm
CronProcess2 = "30 13 */3 * *" # every 3 days at 1:30pm
CronProcess2Reminder = "30 13 */1 * *" # every day at 1:30pm
I initialized a new Cron job using
c := cron.New(cron.WithLogger(adapters.GetCronLoggerAdapter()), cron.WithLocation(time.UTC))
Looking at my logs, it looks like the different processes weren’t scheduled corrcetly
schedule [[now 2021-06-28 06:27:26.8877311 +0000 UTC entry 1 next 2021-07-01 13:30:00 +0000 UTC]]
schedule [[now 2021-06-28 06:27:26.8877311 +0000 UTC entry 2 next 2021-06-28 13:30:00 +0000 UTC]]
schedule [[now 2021-06-28 06:27:26.8877311 +0000 UTC entry 3 next 2021-06-28 13:30:00 +0000 UTC]]
schedule [[now 2021-06-28 06:27:26.8877311 +0000 UTC entry 4 next 2021-06-28 13:30:00 +0000 UTC]]
entry 1 should be 2021-07-13 13:30:00
. Other entries aren’t correct either
Any idea what could be causing this?