Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
keviny2 opened this issue May 17, 2024 · 0 comments
Open

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

keviny2 opened this issue May 17, 2024 · 0 comments

Comments

@keviny2
Copy link

keviny2 commented May 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant