mschubert / clustermq

R package to send function calls as jobs on LSF, SGE, Slurm, PBS/Torque, or each via SSH
https://mschubert.github.io/clustermq/
Apache License 2.0
146 stars 27 forks source link

`scancel --jobname` is not supported by older versions of SLURM #148

Closed ashiklom closed 5 years ago

ashiklom commented 5 years ago

Our HPC is stuck on a pretty old version of SLURM (14.03), for which scancel --jobname doesn't exist -- only scancel --name (which does the same thing). Here is the man page for scancel v.14.11.

In the current version of SLURM (19.05, as of this issue), scancel --jobname is a synonym for scancel --name (man page), presumably for backwards-compatibility.

Given that HPCs are often pretty conservative about updating core systems like this, it would be nice if clustermq supported older versions of SLURM. The easiest would be just to change the call from --jobname to --name in the SLURM::finalize method.

mschubert commented 5 years ago

That makes a lot of sense, thanks!

Can you send a PR?

mschubert commented 5 years ago

Merged, thanks!