-
Notifications
You must be signed in to change notification settings - Fork 7
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 #40 from apriltuesday/EVA-3330
EVA-3330: Add labels to nextflow for SLURM migration
- Loading branch information
Showing
10 changed files
with
99 additions
and
25 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 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 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 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 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,46 @@ | ||
|
||
executor { | ||
name = 'local' | ||
} | ||
|
||
process.ext.base_memory = 6.GB | ||
process.ext.base_time = 10.minutes | ||
|
||
process { | ||
executor = 'local' | ||
|
||
// Dynamic resource allocation with retries | ||
errorStrategy = 'retry' | ||
maxRetries = 1 | ||
memory = { task.ext.base_memory * task.attempt } | ||
time = { task.ext.base_time * task.attempt } | ||
|
||
// Labels for specific runtimes | ||
withLabel: short_time { | ||
ext.base_time = 5.minutes | ||
} | ||
withLabel: default_time { | ||
ext.base_time = 10.minutes | ||
} | ||
withLabel: med_time { | ||
ext.base_time = 30.minutes | ||
} | ||
withLabel: long_time { | ||
ext.base_time = 1.hour | ||
} | ||
|
||
// Labels for specific memory usage | ||
withLabel: small_mem { | ||
ext.base_memory = 1.GB | ||
} | ||
withLabel: default_mem { | ||
ext.base_memory = 6.GB | ||
} | ||
withLabel: med_mem { | ||
ext.base_memory = 8.GB | ||
} | ||
withLabel: big_mem { | ||
ext.base_memory = 10.GB | ||
} | ||
|
||
} |
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 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 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