Skip to content

How to use --cluster-generic-cancel-cmd on LSF #17

@keviny2

Description

@keviny2

My Snakefile looks like this,

rule test:
    output:
        "test.txt"
    resources:
        mem_mb=4000
    shell:
        "sleep 600 && touch {output}"

and my config.yaml file looks like,

executor: cluster-generic
cluster-generic-submit-cmd: 'bsub -R "rusage[mem={resources.mem_mb}GB]" -n 4'
cluster-generic-cancel-cmd: bkill

I fire up my workflow with snakemake --profile profile/ and then press ^C to terminate the process early. I get the following warning,

Job <36740856> is submitted to default queue <long>.: Illegal job ID.
1 out of 1 calls to --cluster-cancel failed. This is safe to ignore in most cases.

and the job isn't terminated. What am I missing?

I am using snakemake v8.11.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions