Cancelling a running job by its name
If you need to cancel a running job, you typically use the scancel command followed by the job id:
% squeue -u $USER
JOBID PARTITION NAME USER STATE TIME TIME_LIMI NODES NODELIST(REASON)
14185711 workq my_jobName kortass RUNNING 43:53 2:00:00 1 nid00312
Did you know that you can cancel it using its name instead of its id with the following scancel command option?
% scancel --name my_jobName
This is also a convenient way to kill/cancel a set of jobs sharing the same name or to avoid canceling an unwanted job by choosing a wrong id after misreading the output of the squeue command.