Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun-m committed Jan 3, 2025
1 parent ac65703 commit ca454cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/worker/cr.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,10 @@ func (s *Worker) waitForRestoredContainer(ctx context.Context, containerId strin
return exitCode
}

go s.collectAndSendContainerMetrics(ctx, request, spec, pid) // Capture resource usage (cpu/mem/gpu)
go s.watchOOMEvents(ctx, containerId, outputLogger) // Watch for OOM events
gpuDeviceIds, _ := s.containerCudaManager.GetContainerGPUDevices(containerId)

go s.collectAndSendContainerMetrics(ctx, request, spec, pid, gpuDeviceIds) // Capture resource usage (cpu/mem/gpu)
go s.watchOOMEvents(ctx, containerId, outputLogger) // Watch for OOM events

ticker := time.NewTicker(1 * time.Second)
defer ticker.Stop()
Expand Down

0 comments on commit ca454cc

Please sign in to comment.