snakemake / snakemake-executor-plugin-slurm

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

Plugin is not compatible with older SLURM versions #25

Closed dnerini closed 4 months ago

dnerini commented 5 months ago

Looks like the plugins is not compatible with old(ish) SLURM versions after #9 was merged.

My cluster still runs on version slurm 20.02.7 and when trying using the plugin I get the following error message:

The job status query failed with command: sacct -X --parsable2 --noheader --format=JobIdRaw,State --starttime now-2days --endtime now --name 1a8c4af2-e653-401a-ae36-6ca49f05ba3d
Error message: Invalid time specification (pos=3): now-2days

From a quick investigation, it looks like the now[{+|-}count[seconds(default)|minutes|hours|days|weeks]] syntax was introduced with version 20.11.0.

Would it make sense to more clearly state the minimal SLURM version compatible with the plugin? Is there any workaround that I can try?

Thanks!