From f2d7d5714928daf8f4cba5ff509b6f5e074d6c56 Mon Sep 17 00:00:00 2001 From: luke-lombardi <33990301+luke-lombardi@users.noreply.github.com> Date: Thu, 24 Oct 2024 20:33:00 -0400 Subject: [PATCH] wip --- pkg/worker/lifecycle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/worker/lifecycle.go b/pkg/worker/lifecycle.go index 00a0857bf..b0f7cb74e 100644 --- a/pkg/worker/lifecycle.go +++ b/pkg/worker/lifecycle.go @@ -261,8 +261,8 @@ func (s *Worker) specFromRequest(request *types.ContainerRequest, options *Conta spec.Hooks.Prestart = nil } - // We need to modify the spec to support Cedana C/R - if s.checkpointingAvailable { + // We need to modify the spec to support Cedana C/R if checkpointing is enabled + if s.checkpointingAvailable && request.CheckpointEnabled { s.cedanaClient.prepareContainerSpec(spec, request.Gpu != "") }