diff --git a/runtime/v2/manager.go b/runtime/v2/manager.go index 085d77b51..177b2f144 100644 --- a/runtime/v2/manager.go +++ b/runtime/v2/manager.go @@ -155,7 +155,7 @@ func (m *TaskManager) Create(ctx context.Context, id string, opts runtime.Create defer cancel() _, errShim := shim.Delete(dctx) if errShim != nil { - shim.Shutdown(ctx) + shim.Shutdown(dctx) shim.Close() } }