PacificBiosciences / HiFi-human-WGS-WDL

BSD 3-Clause Clear License
52 stars 30 forks source link

How can miniwdl configure which queue to use for SLURM? #130

Closed clhappyjiang closed 5 months ago

clhappyjiang commented 5 months ago

Hello! Is it in the [slurm] tag of miniwdl.cfg?

williamrowell commented 5 months ago

Make sure the miniwdl-slurm extension is installed and add a default runtime option for slurm_partition to your miniwdl.cfg. You can see how to specify other runtime defaults at the link.

Example:

[task_runtime]
# Setting a 'maxRetries' default allows jobs that fail due to intermittent
# errors on the cluster to be retried.
## Requires miniwdl >= 1.9.0
command_shell = /bin/bash
defaults = {
        "maxRetries": 2,
        "docker": "ubuntu:20.04",
        "slurm_partition": "yourfavoritepartitionnamehere"
    }