-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from chriswyatt1/working
Working
- Loading branch information
Showing
15 changed files
with
231 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Setting default labels with associated resource allocation | ||
process { | ||
|
||
// Default resources are same as single label for any unlabelled processes that may be added | ||
cpus = { check_max( 1 * task.attempt, 'cpus' ) } | ||
memory = { check_max( 2.GB * task.attempt, 'memory' ) } | ||
time = { check_max( 1.h * task.attempt, 'time' ) } | ||
|
||
// If error is due to timeout or exceeding resource limits then retry | ||
errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' } | ||
maxRetries = 1 | ||
// Do not allow any errors when retrying | ||
maxErrors = '-1' | ||
|
||
withLabel:process_single { | ||
cpus = { check_max( 1 * task.attempt, 'cpus' ) } | ||
memory = { check_max( 2.GB * task.attempt, 'memory' ) } | ||
time = { check_max( 1.h * task.attempt, 'time' ) } | ||
} | ||
withLabel:process_low { | ||
cpus = { check_max( 2 * task.attempt, 'cpus' ) } | ||
memory = { check_max( 4.GB * task.attempt, 'memory' ) } | ||
time = { check_max( 2.h * task.attempt, 'time' ) } | ||
} | ||
withLabel:process_medium { | ||
cpus = { check_max( 4 * task.attempt, 'cpus' ) } | ||
memory = { check_max( 8.GB * task.attempt, 'memory' ) } | ||
time = { check_max( 4.h * task.attempt, 'time' ) } | ||
} | ||
withLabel:process_high { | ||
cpus = { check_max( 8 * task.attempt, 'cpus' ) } | ||
memory = { check_max( 12.GB * task.attempt, 'memory' ) } | ||
time = { check_max( 8.h * task.attempt, 'time' ) } | ||
} | ||
withLabel:process_long { | ||
time = { check_max( 24.h * task.attempt, 'time' ) } | ||
} | ||
withLabel:process_high_memory { | ||
memory = { check_max( 64.GB * task.attempt, 'memory' ) } | ||
} | ||
withLabel:process_med_memory { | ||
memory = { check_max( 20.GB * task.attempt, 'memory' ) } | ||
} | ||
withLabel:download_nr { | ||
memory = 12.GB | ||
cpus = 2 | ||
time = 24.h | ||
} | ||
withLabel:blastdb { | ||
memory = 40.GB | ||
cpus = 4 | ||
time = 8.h | ||
} | ||
withLabel:blast { | ||
memory = 40.GB | ||
cpus = 4 | ||
time = 8.h | ||
} | ||
withLabel:error_ignore { | ||
errorStrategy = 'ignore' | ||
} | ||
withLabel:error_retry { | ||
errorStrategy = 'retry' | ||
maxRetries = 2 | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.