diff --git a/supportedBackends/google/pipelines/common/src/main/scala/cromwell/backend/google/pipelines/common/PredefinedMachineType.scala b/supportedBackends/google/pipelines/common/src/main/scala/cromwell/backend/google/pipelines/common/PredefinedMachineType.scala index a0544b9b253..6716a3561f5 100644 --- a/supportedBackends/google/pipelines/common/src/main/scala/cromwell/backend/google/pipelines/common/PredefinedMachineType.scala +++ b/supportedBackends/google/pipelines/common/src/main/scala/cromwell/backend/google/pipelines/common/PredefinedMachineType.scala @@ -1,17 +1,14 @@ package cromwell.backend.google.pipelines.common -import cromwell.backend.google.pipelines.common.CustomMachineType._ import eu.timepit.refined.api.Refined import eu.timepit.refined.numeric.Positive -import eu.timepit.refined.refineV -import mouse.all._ import org.slf4j.Logger import wdl4s.parser.MemoryUnit import wom.format.MemorySize -import math.{log, pow} case class PredefinedMachineType(cpuCount: Int, gcpString: String) object PredefinedMachineType { + // hardcoded values from: https://cloud.google.com/compute/docs/general-purpose-machines#c3-standard val c3Standard_4 = PredefinedMachineType(4, "c3-standard-4") val c3Standard_8 = PredefinedMachineType(8, "c3-standard-8") val c3Standard_22 = PredefinedMachineType(22, "c3-standard-22") @@ -22,7 +19,7 @@ object PredefinedMachineType { def getClosestC3Machine(requestedMemory: MemorySize, requestedCpu: Refined[Int, Positive], jobLogger: Logger): String = { val adjustedMemory: MemorySize = MemorySize(requestedCpu.value * 4.0, MemoryUnit.GB) if (adjustedMemory != requestedMemory) { - jobLogger.info(s"Adjusting memory from ${requestedMemory.amount} to ${adjustedMemory.amount} in order to match GCP requirements for the requested CPU.") + jobLogger.info(s"Adjusting memory from ${requestedMemory.toString} to ${adjustedMemory.toString} in order to match GCP requirements for the requested CPU.") } val machine = requestedCpu.value match { case cpu if cpu <= 4 => c3Standard_4