From 20c826fd5051bff96bc4f3e5d7da58316370c624 Mon Sep 17 00:00:00 2001 From: Harshil Patel Date: Thu, 5 May 2022 11:10:05 +0100 Subject: [PATCH] Update retry strategy for preemptible instances on GCP --- conf/google.config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/google.config b/conf/google.config index 4333d86..41f0e1f 100644 --- a/conf/google.config +++ b/conf/google.config @@ -15,7 +15,8 @@ google.zone = params.google_zone google.lifeSciences.debug = params.google_debug workDir = params.google_bucket google.lifeSciences.preemptible = params.google_preemptible + if (google.lifeSciences.preemptible) { - process.errorStrategy = { task.exitStatus==14 ? 'retry' : 'terminate' } + process.errorStrategy = { task.exitStatus in [8,10,14] ? 'retry' : 'terminate' } process.maxRetries = 5 } \ No newline at end of file