使用singularity的miniwdl slurm后端
项目描述
扩展miniwdl,使其能够在singularity容器中运行SLURM集群上的工作流程。
这是miniwdl的SLURM后端插件,用于在miniwdl中运行WDL任务容器。如果作业描述包含容器,将使用singularity作为容器运行时。
安装
对于最新稳定版本
pip install miniwdl-slurm
对于开发版本
pip install git+https://github.com/miniwdl-ext/miniwdl-slurm.git
配置
以下miniwdl配置示例可用于在SLURM集群上使用miniwdl
[scheduler]
container_backend=slurm_singularity
# task_concurrency defaults to the number of processors on the system.
# since we submit the jobs to SLURM this is not necessary.
# higher numbers means miniwdl has to monitor more processes simultaneously
# which might impact performance.
task_concurrency=200
# This setting allows running tasks to continue, even if one other tasks fails.
# Useful in combination with call caching. Prevents wasting resources by
# cancelling jobs half-way that would probably succeed.
fail_fast = false
[call_cache]
# The following settings create a call cache under the current directory.
# This prevents wasting unnecessary resources on the cluster by rerunning
# jobs that have already succeeded.
put = true
get = true
dir = "$PWD/miniwdl_call_cache"
[task_runtime]
# Setting a 'maxRetries' default allows jobs that fail due to intermittent
# errors on the cluster to be retried.
defaults = {
"maxRetries": 2,
"docker": "ubuntu:20.04"
}
[singularity]
# This plugin wraps the singularity backend. Make sure the settings are
# appropriate for your cluster.
exe = ["singularity"]
# the miniwdl default options contain options to run as a fake root, which
# is not available on most clusters.
run_options = [
"--containall"
]
# Location of the singularity images (optional). The miniwdl-slurm plugin
# will set it to a directory inside $PWD. This location must be reachable
# for the submit nodes.
image_cache = "$PWD/miniwdl_singularity_cache"
[slurm]
# extra arguments passed to the srun command (optional).
extra_args="--partition heavy_users,gpu --comment 'run with miniwdl'"
项目详情
关闭
miniwdl-slurm-0.2.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | ac1635e0f57c8e600f84074d940050cf261ade0ff619f2ed09d273a438f2fc02 |
|
MD5 | 91e493c9bdd0fb70d0aa6bc82d5828b7 |
|
BLAKE2b-256 | 5e6ac245d037a286458873761d1f8b45024aab28a46de0b3b7efca5302e4ea68 |
关闭
miniwdl_slurm-0.2.0-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | e2bff7fe4cb13d7d9374507699773f4d7a1d527b19794f635bca3bd1d205d872 |
|
MD5 | d2f6b3625e9c53791c7563cd9748e139 |
|
BLAKE2b-256 | 509d5afd88340606bdf6440deb1bcd8525bf78914c4887a2ea29c2d5b45ceb54 |