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

using custom resources to limit simultaneous jobs #35

Open
ctb opened this issue Aug 21, 2023 · 0 comments
Open

using custom resources to limit simultaneous jobs #35

ctb opened this issue Aug 21, 2023 · 0 comments

Comments

@ctb
Copy link
Member

ctb commented Aug 21, 2023

via Christopher Schröder in snakemake google group, Aug 3 2023 -

Hey Georg,                                                                      
You can define a custom resource and use it for limiting.                       
                                                                                
                                                                                
rule a:                                                                         
    input:     ...                                                              
    output:    ...                                                              
    resources:                                                                  
        foo=1                                                                   
    shell:                                                                      
        "..."                                                                   
                                                                                
$ snakemake --resources foo=1                                                   
                                                                                
Now you provide only one "foo" and rule a takes one "foo" on execution.         
                                                                                
Best                                                                            
Christo                                                  

see practical use for benchmarking here dib-lab/2022-branchwater-benchmarking@83a5b6a :)

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