Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
Signed-off-by: pmahindrakar-oss <[email protected]>
  • Loading branch information
pmahindrakar-oss committed Nov 27, 2023
1 parent 150a2b8 commit c5fa1b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flyteadmin/scheduler/core/gocron_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c5fa1b4

Please sign in to comment.