cluster: Configure time limit in cluster.yaml

This commit is contained in:
Jonas Hörsch 2018-03-09 15:40:51 +01:00
parent 44d2d950e2
commit e228ce7e46
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ __default__:
name: "pypsa-eur.{rule}.{wildcards}"
output: "logs/cluster/{rule}.{wildcards}.out"
error: "logs/cluster/{rule}.{wildcards}.err"
time: "0-1"
solve_network:
partition: "{params.partition}"
output: "logs/cluster/{rule}.{wildcards}.out"
error: "logs/cluster/{rule}.{wildcards}.err"
time: "8-0"

View File

@ -1,4 +1,4 @@
#!/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}" "$@"