Stopping a submitted job
This guide describes how to cancel jobs submitted to slurm using the cancel_slurm_jobs
function.
Prerequisites
- Submit a job to slurm (see How to submit a NONMEM job to slurm)
- Job ID of the job you wish to cancel
Cancelling slurm jobs
Here’s the code you’ll use to cancel slurm jobs currently running or configuring
library(slurmtools)
cancel_slurm_job(job_id = "12345")
This will prompt you to confirm the cancellation:
You are about to cancel job: 12345. Are you sure you want to cancel? [Y/n]
Entering Y
will cancel the job 12345
.
Next Steps
See the cancel_slurm_job
reference guide for more detailed explanation of the function.