comparison 0.2.1/conf/modules.config @ 39:36ca1a1156df

"planemo upload"
author kkonganti
date Thu, 30 Jun 2022 12:34:34 -0400
parents a047ee0e34ae
children 62d848f2a128
comparison
equal deleted inserted replaced
38:d7c07f2456b4 39:36ca1a1156df
12 12
13 errorStrategy = { 13 errorStrategy = {
14 ![0].contains(task.exitStatus) ? dynamic_retry(task.attempt, 10) : 'finish' 14 ![0].contains(task.exitStatus) ? dynamic_retry(task.attempt, 10) : 'finish'
15 } 15 }
16 16
17 maxRetries = 21 17 maxRetries = 80
18 18
19 withLabel: 'process_femto' { 19 withLabel: 'process_femto' {
20 cpus = 2 20 cpus = 2
21 } 21 }
22 22
79 } 79 }
80 80
81 // Function will return after sleeping for some time. 81 // Function will return after sleeping for some time.
82 // Sleep time increases exponentially by tast attempt. 82 // Sleep time increases exponentially by tast attempt.
83 def dynamic_retry(task_retry_num, factor_by) { 83 def dynamic_retry(task_retry_num, factor_by) {
84 println tas 84 // sleep(Math.pow(2, task_retry_num.toInteger()) * factor_by.toInteger() as long)
85 sleep(Math.pow(2, task_retry_num.toInteger()) * factor_by.toInteger() as long) 85 sleep(Math.pow(1.27, i) as long)
86 return 'retry' 86 return 'retry'
87 } 87 }