File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
modules/nf-commons/src/main/nextflow/util Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import com.google.common.base.CaseFormat
20
20
import groovy.transform.CompileDynamic
21
21
import groovy.transform.CompileStatic
22
22
import groovy.transform.EqualsAndHashCode
23
+ import groovy.transform.Memoized
23
24
import groovy.transform.ToString
24
25
import groovy.util.logging.Slf4j
25
26
import io.seqera.util.retry.Retryable
@@ -93,12 +94,14 @@ class RetryConfig implements Retryable.Config {
93
94
config(Global . config)
94
95
}
95
96
97
+ @Memoized
96
98
static RetryConfig config (Map config ) {
97
- if ( config!= null ) {
98
- return new RetryConfig (getNestedConfig(config, ' nextflow' , ' retryPolicy' ) ?: Collections . emptyMap())
99
+ if ( config== null ) {
100
+ log. debug " Missing nextflow session - using default retry config"
101
+ config = Collections . emptyMap()
99
102
}
100
- log . warn " Missing nextflow session - using default retry config "
101
- return new RetryConfig ()
103
+
104
+ return new RetryConfig (getNestedConfig(config, ' nextflow ' , ' retryPolicy ' ) ?: Collections . emptyMap() )
102
105
}
103
106
104
107
private static Map getNestedConfig (Map config , String ... keys ) {
You can’t perform that action at this time.
0 commit comments