Skip to content

Commit

Permalink
add time+no retries
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperSkytte committed Feb 11, 2024
1 parent 369adfe commit 5549a80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions profiles/biocloud/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ cluster:
--qos={resources.qos}
--cpus-per-task={threads}
--mem={resources.mem_mb}
--time={resources.time}
--job-name=smk-{rule}-{wildcards}
--output=logs/{rule}/{rule}-{wildcards}-%j.out
#if rules don't have resources set, use these default values.
#Note that "mem" will be converted to "mem_mb" under the hood, so mem_mb is prefered
default-resources:
- partition="general"
- qos="normal"
- threads=128
- mem_mb=1024
- threads=1
- mem_mb=512
- gpu=0
- time=0-08:00:00
#max threads per job/rule. Will take precedence over anything else. Adjust this
#before submitting to SLURM and leave threads settings elsewhere untouched
max-threads: 32
Expand All @@ -27,7 +29,7 @@ printshellcmds: False
jobs: 50
local-cores: 1
latency-wait: 120
restart-times: 1 #restart failed tasks this amount of times
restart-times: 0
max-jobs-per-second: 10 #don't touch
keep-going: True
rerun-incomplete: True
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/concatenate_fastq.smk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rule concatenate_fastq:
output:
temp(os.path.join(config['tmp_dir'], "samples", "{sample}_concat.fastq.gz"))
resources:
mem_mb = 600
mem_mb = 512
threads: 1
log:
os.path.join(config["log_dir"], "concatenate_fastq", "{sample}.log")
Expand Down

0 comments on commit 5549a80

Please sign in to comment.