Skip to content

Interactive Jobs

For some tasks, such as debugging a job or self-installing software, you may require an interactive job on a Baskerville compute node. We provide a helper script for launching such a job, this is done using both the salloc and srun commands.

salloc/srun

To start an interactive job, you can use the following command:

salloc

This will submit a 5-minute compute job, wait for the job to start, and then connect you to the head node for the job. You should see output similar too the following:

salloc: Granted job allocation 5184
salloc: Waiting for resource configuration
salloc: Nodes bask-pg0309u04a are ready for job

Relevant arguments in using salloc are the same as when assigning resources in a job script and further information can also be found within the slurm documentation salloc options. Once within the salloc interactive environment you can run such jobs using the srun command:

srun

A full list of srun arguments can also be found within the Slurm documentation srun arguments.

Once you are in the srun environment, you should reset your environment to ensure you have not inherited settings from a login node. To do this run:

module purge
module load baskerville

When you disconnect from the interactive job, by exiting the terminal, then the job will automatically be cancelled. If you use an interactive job then it is your responsibility to make sure that you make good use of the resources.

Idle Jobs

Please don’t leave the job idle, and remember to disconnect as soon as you’ve finished your work.


Last update: September 29, 2021