diff --git a/flyteadmin/scheduler/core/gocron_scheduler.go b/flyteadmin/scheduler/core/gocron_scheduler.go index f6be4d98df..c9386746c6 100644 --- a/flyteadmin/scheduler/core/gocron_scheduler.go +++ b/flyteadmin/scheduler/core/gocron_scheduler.go @@ -54,6 +54,8 @@ func (g *GoCronScheduler) GetTimedFuncWithSchedule() TimedFuncWithSchedule { func (g *GoCronScheduler) BootStrapSchedulesFromSnapShot(ctx context.Context, schedules []models.SchedulableEntity, snapshot snapshoter.Snapshot) { for _, s := range schedules { + // Copy the object to save to a new pointer since the pointer is saved later + // Issue due to https://github.com/golang/go/discussions/56010 schedule := s if *s.Active { funcRef := g.GetTimedFuncWithSchedule()