Is it possible to restrict number of jobs to run by a particular rule in snakemake? --jobs
controls globably how many jobs are allowed to run at a time, but I would like to restrict by a specific rule.
This is because, I have a particular rule that can be used at most for two jobs in parallel. However, if I set --jobs
to 20, this results in tool in that particular rule crashing. I use snakemake v5.2.0 in LSF cluster.