Skip to content

Commit

Permalink
[Disk Manager] fix memory leak in regular tasks scheduling (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
gy2411 authored Sep 18, 2024
1 parent 939e54e commit e6b7d1f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cloud/tasks/scheduler_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,11 @@ func (s *scheduler) ScheduleRegularTasks(
continue
}

ctx = headers.SetIncomingRequestID(ctx, requestID.String())
ctx = tracing.SetTracingContext(ctx)
metadata := tasks_storage.NewMetadata(headers.GetTracingHeaders(ctx))
metadataCtx := headers.SetIncomingRequestID(ctx, requestID.String())
metadataCtx = tracing.SetTracingContext(metadataCtx)
metadata := tasks_storage.NewMetadata(
headers.GetTracingHeaders(metadataCtx),
)

schedule := tasks_storage.TaskSchedule{
ScheduleInterval: schedule.ScheduleInterval,
Expand Down

0 comments on commit e6b7d1f

Please sign in to comment.