75 | | There are two more commands we should familiarize ourselves with before we begin. The first is the “squeue” command. This shows us the list of jobs that have been submitted to SLURM that are either currently running or are in the queue waiting to run. The last is the “scancel” command. This allows us to terminate a job that is currently in the queue. So that we can see these commands in action, let’s extend our jobs run time by adding a sleep command to the end of our SLURM script. |
| 75 | There are two more commands we should familiarize ourselves with before we begin. The first is the “squeue” command. This shows us the list of jobs that have been submitted to SLURM that are either currently running or are in the queue waiting to run. The last is the “scancel” command. This allows us to terminate a job that is currently in the queue. To see these commands in action, let's simulate a one hour job by using the sleep command at the end of a new submission script. |
| 76 | {{{#!bash |
| 77 | #!/bin/bash |
| 78 | #SBATCH --job-name=OneHourJob ### Job Name |
| 79 | #SBATCH --time=0-00:01:00 ### Wall clock time limit in Days-HH:MM:SS |
| 80 | #SBATCH --nodes=1 ### Node count required for the job |
| 81 | #SBATCH --ntasks-per-node=1 ### Nuber of tasks to be launched per Node |