Monday Exercise 1.6: Remove Jobs From the Queue¶
The goal of this exercise is to show you how to remove jobs from the queue. This is helpful if you make a mistake, do not want to wait for a job to complete, or otherwise need to fix things. For example, if some test jobs go on hold for using too much memory or disk, you may want to just remove them, edit the submit files, and then submit again.
NOTE: Please remember to remove any jobs from the queue that you have given up on. Otherwise, the queue will start to get very long with jobs that will waste resources (and decrease your priority), or that may never run (if they're on hold, or have other issues keeping them from matching).
This exercise is very short, but if you are out of time, you can come back to it later.
Removing a Job From the Queue¶
To practice removing jobs from the queue, you need a job in the queue!
- Submit a job from an earlier exercise
- Determine the job ID (
cluster.process) from the
condor_submitoutput or from
- Remove the job:\
Use the full job ID this time, e.g.,
- Did the job leave the queue immediately? If not, about how long did it take?
So far, we have created job clusters that contain only one job process (the
.0 part of the job ID). That will change soon, so it is good to know how to remove a specific job ID. However, it is possible to remove all jobs that are part of a cluster at once. Simply omit the job process (the
.0 part of the job ID) in the
%UCL_PROMPT_SHORT% <strong>condor_rm <em>cluster</em></strong>
Finally, you can include many job clusters and full job IDs in a single
condor_rm command. For example:
%UCL_PROMPT_SHORT% <strong>condor_rm 5768 5769 5770.0 5771.2</strong>
Removing All of Your Jobs¶
If you really want to remove all of your jobs at once, you can do that.
- Quickly submit several jobs from past exercises
- View the jobs in the queue with
- Remove them all at once\
Use your login user ID for
condor_qto track progress
In case you are wondering, you can remove only your own jobs. HTCondor administrators can remove anyone’s jobs, so be nice to them.