Closed tatumdmortimer closed 4 months ago
Can you please run a minimal example with the --verbose
flag? And paste or attach (the output is probably a mouthful) the output here? Edit: Oh, please include the command line.
Suggestion for a minimal Snakefile:
rule all:
input: "results/a.out"
rule test1:
output: "results/a.out"
shell: "touch {output}"
I've attached the output using the minimal snakefile you suggested. This is the command line that I used: snakemake --cores 1 --workflow-profile slurm_profile --verbose
Thank you. This is really weird, because the SLURM docs state, that:
The default is one task per node ...
Which means that no requirement is imposed to set -n/--ntasks
explicitly.
It will not hurt to implement submitting with a default 1 for the tasks and not requiring users with a situation like yours to patch the plugin. But I wonder: Are you in contact with your admins and can tell us why this cluster deviates from the SLURM defaults?
@tatumdmortimer please update to the latest release and give it a try.
I updated to the latest release, and the minimal Snakefile completed successfully. Thanks for fixing this so quickly.
I did get in touch with the research computing at my university, and while they did confirm that cluster deviates from the defaults, they didn't provide me with a reason why.
Well, then I am just glad it's working for you (and hope for anybody else, too).
FYI: SchedMD's (the company behind SLURM) "ecosystem" shows some odd flowers, mainly due to service policies. I am merely trying to get information about the how and why of deviations from the standard to improve and stabilize these plugins. And sometimes the answer is "just because". Anyway, thanks for asking!
I am working on transitioning my snakemake workflows to Snakemake v8. However, when I use this plugin with a profile, I get the following error message:
WorkflowError: SLURM job submission failed. The error message was sbatch: error: You must specify a number of tasks. sbatch: error: Batch job submission failed: Job size specification needs to be provided
Here are the versions of Snakemake, this plugin, and slurm that I am working with:
Here is my profile:
I cloned the repository, removed the
if job.resources.get("mpi", False):
on line 107 of__init__.py
, and reinstalled the plugin. This seems to have fixed the issue for me. Is there a reason these were only included in the sbatch command for mpi jobs?Thanks!