When working with multiple clusters, it is possible to use SLURM_CLUSTERS to set the cluster to be used with certain commands, e.g. sbatch and squeue. It would be great if also scancel could make use of this variable, as it would make the user experience more consistent. As a practical user case, SLURM_CLUSTERS is the only way to use multiple clusters with the popular workflow manager Nextflow. However usability is kind of broken by inability to issue scancel across clusters using the environment variable. We have a community of tens of users potentially benefitting from this.
Thank you for the report. I am looking into it.
Good news! We have added this to Slurm, and it will be in 20.02.4. I am closing this bug, but feel free to reopen if you have questions about the changes.
Thanks Gavin, great to hear this feature will be in the next Slurm release! Sincerely, Marco