-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix for v0.3.1 continued #98
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments for @jagedn
final taskCfg = task.getConfig() | ||
final taskCores = !taskCfg.get("cpus") ? DEFAULT_CPUS : taskCfg.get("cpus") as Integer | ||
final taskMemory = taskCfg.get("memory") ? new MemoryUnit( taskCfg.get("memory") as String ) : new MemoryUnit(DEFAULT_MEMORY) | ||
final taskMemory = !taskCfg.get("memory") ? new MemoryUnit(DEFAULT_MEMORY) : new MemoryUnit( taskCfg.get("memory") as String ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jagedn , I think that the CPU/memory
allocation needs to be updated because of a resourceLimits
directive which was introduced in Nextflow v24.04.x
onwards.
Here's a good overview https://nf-co.re/docs/usage/getting_started/configuration#max-resources of the older --max_cpus
and --max_memory
parameters and the new native directive.
Basically, as of now, if you try to run nf-core/demo
pipeline on sun-nomadlab
the FASTQC
jobs are not being allocated anywhere since the actual resources in the generated Nomad job definition are different from the global override we provide in nextflow.config
file.
- What is set in
nextflow.config
process {
executor = "nomad"
cpus=4
memory= "4.GB"
time= "1.h"
//NOTE: Basically using the new directive here, but it is a generalized version of above settings.
resourceLimits = [ cpus: 4, memory: 4.GB, time: 1.h ]
}
- What Nomad receives
NOTE: The problem seems to be that our config is not overriding the default memory for FASTQC
(as assigned via a process_medium
label in the pipeline config)
I think this might be related to nextflow-io/nextflow#5306 - what are your thoughts?
In the meantime, I think I'll use a fork to control that behavior 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
surely
I remember I spent lot of days trying to improve the config process but there are lot of posibilities due profiles...
Signed-off-by: Jorge Aguilera <[email protected]>
Continuing the discussion from #96 (comment)