snakemake / snakemake-executor-plugin-slurm

A Snakemake executor plugin for submitting jobs to a SLURM cluster
MIT License
9 stars 13 forks source link

feat: warning if run in job #78

Closed cmeesters closed 1 week ago

cmeesters commented 2 months ago

Already, two issues (#75 and #22) seem to result from running Snakemake in a SLURM job context and using this executor plugin. This PR introduces detecting if triggered within a SLURM job and issuing a warning accordingly.

In principle, the plugin may work in job context. Submitting jobs from jobs has always been a highlight of SLURM. However, settings may lead to unintended behaviour (and would do so without Snakemake, presumably). Hence, we can only warn from the executor.

cmeesters commented 3 weeks ago

@johanneskoester I think this is a rather trivial change - however, I do not know how to extend the test suite for it. Pointers? Or can it be merged like that?

cmeesters commented 3 weeks ago

@johanneskoester I consider this an urgent PR - there are always people you try something like this.

cmeesters commented 1 week ago

waited long enough