comparison 0.2.1/conf/modules.config @ 45:62d848f2a128

"planemo upload"
author kkonganti
date Thu, 30 Jun 2022 15:28:32 -0400
parents 36ca1a1156df
children
comparison
equal deleted inserted replaced
44:d532ac969904 45:62d848f2a128
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 // sleep(Math.pow(2, task_retry_num.toInteger()) * factor_by.toInteger() as long) 84 // sleep(Math.pow(2, task_retry_num.toInteger()) * factor_by.toInteger() as long)
85 sleep(Math.pow(1.27, i) as long) 85 sleep(Math.pow(1.27, task_retry_num.toInteger()) as long)
86 return 'retry' 86 return 'retry'
87 } 87 }