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
2020import groovy.transform.CompileDynamic
2121import groovy.transform.CompileStatic
2222import groovy.transform.EqualsAndHashCode
23+ import groovy.transform.Memoized
2324import groovy.transform.ToString
2425import groovy.util.logging.Slf4j
2526import io.seqera.util.retry.Retryable
@@ -93,12 +94,14 @@ class RetryConfig implements Retryable.Config {
9394 config(Global . config)
9495 }
9596
97+ @Memoized
9698 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()
99102 }
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() )
102105 }
103106
104107 private static Map getNestedConfig (Map config , String ... keys ) {
You can’t perform that action at this time.
0 commit comments