Skip to content

Commit

Permalink
Address #582
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 committed Oct 27, 2020
1 parent 36ca27a commit d618e38
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2394,7 +2394,7 @@ profiles {
big_data {
process {
withName: markduplicates {
memory = { check_max( 16.GB * task.attempt, 'memory' ) }
memory = 16.GB
}
}
}
Expand All @@ -2405,6 +2405,12 @@ Where we have increased the default `4.GB` to `16.GB`. Make sure that you keep
the `check_max` function, as this prevents your run asking for too much memory
during retries.

> Note that with this you will _not_ have the automatic retry mechanism. If
> you want this, re-add the `check_max()` function on the `memory` line, and
> add to the bottom of the entire file (outside the profiles block), the
> block starting `def check_max(obj, type) {`, which is at the end of the
> [nextflow.config file](https://github.com/nf-core/eager/blob/master/nextflow.config)
Once saved, we can then modify your original Nextflow run command:

```bash
Expand Down

0 comments on commit d618e38

Please sign in to comment.