File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ params.mem = 20
77
88params. publish_dir = " "
99
10+ params. max_retries = 5 // set to 0 will disable retry
11+ params. first_retry_wait_time = 1 // in seconds
12+
1013// required params w/ default
1114params. container_version = " 5.0.0"
1215params. transport_mem = 2 // Transport memory is in number of GBs
@@ -20,6 +23,12 @@ params.api_token = "" // song/score API token for download process
2023
2124// TODO: Replace with score container once it can download files via analysis_id
2225process scoreDownload {
26+ maxRetries params. max_retries
27+ errorStrategy {
28+ sleep(Math . pow(2 , task. attempt) * params. first_retry_wait_time * 1000 as long ); // backoff time increases exponentially before each retry
29+ return params. max_retries ? ' retry' : ' terminate'
30+ }
31+
2332 pod = [secret : workflow. runName + " -secret" , mountPath : " /tmp/rdpc_secret" ]
2433
2534 cpus params. cpus
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ params.mem = 1
77
88params. publish_dir = " "
99
10+ params. max_retries = 5 // set to 0 will disable retry
11+ params. first_retry_wait_time = 1 // in seconds
12+
1013// required params w/ default
1114params. container_version = " 4.2.1"
1215
@@ -18,6 +21,12 @@ params.api_token = "" // song/score API token for download process
1821// --score_url score url for download process
1922
2023process songGetAnalysis {
24+ maxRetries params. max_retries
25+ errorStrategy {
26+ sleep(Math . pow(2 , task. attempt) * params. first_retry_wait_time * 1000 as long ); // backoff time increases exponentially before each retry
27+ return params. max_retries ? ' retry' : ' terminate'
28+ }
29+
2130 pod = [secret : workflow. runName + " -secret" , mountPath : " /tmp/rdpc_secret" ]
2231
2332 cpus params. cpus
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ params.container = ""
2727params. container_registry = " "
2828params. publish_dir = " " // set to empty string will disable publishDir
2929
30+ params. max_retries = 5 // set to 0 will disable retry
31+ params. first_retry_wait_time = 1 // in seconds
32+
3033// tool specific parmas go here, add / change as needed
3134params. study_id = " TEST-PR"
3235params. analysis_id = " 9940db0f-c100-496a-80db-0fc100d96ac1"
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ version = '2.6.0' // package version
3030// universal params
3131params. publish_dir = " "
3232
33+ params. max_retries = 5 // set to 0 will disable retry
34+ params. first_retry_wait_time = 1 // in seconds
35+
3336// tool specific parmas go here, add / change as needed
3437params. study_id = " "
3538params. analysis_id = " "
You can’t perform that action at this time.
0 commit comments