cluster: Configure time limit in cluster.yaml
This commit is contained in:
parent
44d2d950e2
commit
e228ce7e46
@ -3,7 +3,7 @@ __default__:
|
|||||||
name: "pypsa-eur.{rule}.{wildcards}"
|
name: "pypsa-eur.{rule}.{wildcards}"
|
||||||
output: "logs/cluster/{rule}.{wildcards}.out"
|
output: "logs/cluster/{rule}.{wildcards}.out"
|
||||||
error: "logs/cluster/{rule}.{wildcards}.err"
|
error: "logs/cluster/{rule}.{wildcards}.err"
|
||||||
|
time: "0-1"
|
||||||
solve_network:
|
solve_network:
|
||||||
partition: "{params.partition}"
|
partition: "{params.partition}"
|
||||||
output: "logs/cluster/{rule}.{wildcards}.out"
|
time: "8-0"
|
||||||
error: "logs/cluster/{rule}.{wildcards}.err"
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
snakemake --latency-wait 100 --cluster-config cluster.yaml --cluster "sbatch --parsable -J '{cluster.name}' -p {cluster.partition} -n 1 -t '6-0' --cpus-per-task {threads} -o '{cluster.output}' --mem {resources.mem_mb}" "$@"
|
snakemake --latency-wait 100 --cluster-config cluster.yaml --cluster "sbatch --parsable -J '{cluster.name}' -p {cluster.partition} -n 1 -t {cluster.time} --cpus-per-task {threads} -o '{cluster.output}' --mem {resources.mem_mb}" "$@"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user