From d8c27759761232798ce6a295a98426b66adb39ee Mon Sep 17 00:00:00 2001 From: Andrew Frank Date: Tue, 7 Jun 2022 09:41:41 -0400 Subject: [PATCH] Update google.config to fix custom VM memory error --- conf/google.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/google.config b/conf/google.config index 41f0e1f..6e8a45a 100644 --- a/conf/google.config +++ b/conf/google.config @@ -19,4 +19,6 @@ google.lifeSciences.preemptible = params.google_preemptible if (google.lifeSciences.preemptible) { process.errorStrategy = { task.exitStatus in [8,10,14] ? 'retry' : 'terminate' } process.maxRetries = 5 -} \ No newline at end of file +} + +process.machineType = { task.memory > task.cpus * 6.GB ? ['custom', task.cpus, task.cpus * 6656].join('-') : null }