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:
parent
a543a3ebc6
commit
20c826fd50
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
Loading…
Reference in a new issue