1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-11 04:23:10 +00:00

Update retry strategy for preemptible instances on GCP

This commit is contained in:
Harshil Patel 2022-05-05 11:10:05 +01:00
parent a543a3ebc6
commit 20c826fd50

View file

@ -15,7 +15,8 @@ google.zone = params.google_zone
google.lifeSciences.debug = params.google_debug google.lifeSciences.debug = params.google_debug
workDir = params.google_bucket workDir = params.google_bucket
google.lifeSciences.preemptible = params.google_preemptible google.lifeSciences.preemptible = params.google_preemptible
if (google.lifeSciences.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 process.maxRetries = 5
} }