Closed trevorb1 closed 3 days ago
I don't think the resource allocation (mem_mb / threads ) are actually used when you run it locally, snakemake only uses those for cluster runs. I think to deal with this you should run with -j1 --cores all to reduce the number of jobs running at once, and with all cores being used.
Ahhh. Right, thank you. Forgot -j
applies to clusters.
Checklist
master
branchpypsa-usa
environment. Update viaconda env update -f envs/environment.yaml
The Issue
Running sector studies causes (in particular) the
build_demand
rule to be much heavier than the electrical counterpart. This often (at least on my computer) causes rules to fail with the error along the lines of:This is just a resource allocation issue, and rerunning the workflow will eventually get past this.
Within the snakemake rules, the resources need to be updated to use the sector wildcard and determine appropriate resource limits.
Steps To Reproduce
snakemake -j32
(or similar)Expected Behavior
No response
Error Message
No response
Anything else?
No response