4

我正在使用snakemake v. 5.7.0。管道在本地启动或通过以下方式提交到 SLURM 时正确运行snakemake --drmaa:作业被提交,一切都按预期工作。但是,在后一种情况下,会在当前目录中生成许多 slurm 日志文件。

使用该选项调用的 Snakemake--drmaa-log-dir会创建选项中指定的目录,但无法执行规则。不生成日志文件。

这是一个最小的例子。首先,使用的 Snakefile:

rule all:
  shell: "sleep 20 & echo SUCCESS!"

下面是输出snakemake --drmaa

Building DAG of jobs...
Using shell: /usr/bin/bash
Provided cores: 1
Rules claiming more threads will be scaled down.
Job counts:
        count   jobs
        1       all
        1

[Fri Apr 10 21:03:50 2020]
rule all:
    jobid: 0

Submitted DRMAA job 0 with external jobid 13321.
[Fri Apr 10 21:04:00 2020]
Finished job 0.
1 of 1 steps (100%) done
Complete log: /XXXXX/snakemake_test/.snakemake/log/2020-04-10T210349.984931.snakemake.log

这是输出snakemake --drmaa --drmaa-log-dir foobar

Building DAG of jobs...
Using shell: /usr/bin/bash
Provided cores: 1
Rules claiming more threads will be scaled down.
Job counts:
        count   jobs
        1       all
        1

[Fri Apr 10 21:06:19 2020]
rule all:
    jobid: 0

Submitted DRMAA job 0 with external jobid 13322.
[Fri Apr 10 21:06:29 2020]
Error in rule all:
    jobid: 0
    shell:
        sleep 20 & echo SUCCESS!
        (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

Error executing rule all on cluster (jobid: 0, external: 13322, jobscript: /XXXXXX/snakemake_test/.snakemake/tmp.9l7fqvgg/snakejob.all.0.sh). For error details see the cluster log and the log files of the involved rule(s).
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: /XXXXX/snakemake_test/.snakemake/log/2020-04-10T210619.598354.snakemake.log

不生成日志文件。目录 foobar 已创建,但为空。

我究竟做错了什么?

4

1 回答 1

2

--drmaa-log-dir在 slurm 中使用的问题之前被报告过,但不幸的是到目前为止还没有已知的解决方案。

于 2020-04-14T11:39:08.553 回答