How to cancel jobs on Slurm with job ID(job number) bigger than a certain number

command lineslurm

I have submitted 800 jobs on Slurm. I want to cancel those jobs that have job ID/number bigger than a number(since there is a mistake in them). I don't want to cancel all my jobs because some are running and some that are in the queue are correct.

Best Answer

It is not strictly answering how to cancel jobs greater that a given number, but it would work for the problem @mona-jalilvand was trying to solve : cancel jobs in a range as described here

scancel  {1000..1050}

Much simpler then getting into bash scripting... worked well for me.

Related Question