How to remove jobs from Condor

You can remove jobs, whatever their status (e.g. Idle, Running or Held) using the condor_rm command. Full information can be found in the HTCondor Manuals. In brief this command can be used to remove all your jobs, all the jobs in a specific cluster, or a single job, e.g.

[m65432ab@submitter ~]$ condor_rm m65432ab
All jobs of user "m65432ab" have been marked for removal

to remove all your jobs (replace user_id with your usernname),

[m65432ab@submitter ~]$ condor_q


-- Schedd: submitter.itservices.manchester.ac.uk : <130.88.203.22:9618?... @ 06/26/19 16:20:42
OWNER    BATCH_NAME    SUBMITTED   DONE   RUN    IDLE   HOLD  TOTAL JOB_IDS
m65432ab ID: 150019   6/26 15:59      1      4      _      _      5 150019.0-4
m65432ab ID: 150023   6/26 16:18      _      _      1      _      1 150023.0
m65432ab ID: 150024   6/26 16:20      _      _      1      _      1 150024.0

Total for query: 7 jobs; 1 completed, 0 removed, 2 idle, 4 running, 0 held, 0 suspended 
Total for m65432ab: 7 jobs; 1 completed, 0 removed, 2 idle, 4 running, 0 held, 0 suspended 
Total for all users: 17656 jobs; 0 completed, 0 removed, 16634 idle, 1007 running, 15 held, 0 suspended

[m65432ab@submitter ~]$ condor_rm 150019
All jobs in cluster 150019 have been marked for removal
[m65432ab@submitter ~]$ condor_q


-- Schedd: submitter.itservices.manchester.ac.uk : <130.88.203.22:9618?... @ 06/26/19 16:20:59
OWNER    BATCH_NAME    SUBMITTED   DONE   RUN    IDLE   HOLD  TOTAL JOB_IDS
m65432ab ID: 150023   6/26 16:18      _      _      1      _      1 150023.0
m65432ab ID: 150024   6/26 16:20      _      _      1      _      1 150024.0

Total for query: 2 jobs; 0 completed, 0 removed, 2 idle, 0 running, 0 held, 0 suspended
Total for m65432ab: 2 jobs; 0 completed, 0 removed, 2 idle, 0 running, 0 held, 0 suspended
Total for all users: 17656 jobs; 0 completed, 0 removed, 16634 idle, 1007 running, 15 held, 0 suspended

[m65432ab@submitter ~]$ 

to remove all jobs in a specific cluster and

[m65432ab@submitter ~]$ condor_q


-- Schedd: submitter.itservices.manchester.ac.uk : <130.88.203.22:9618?... @ 06/26/19 16:20:42
OWNER    BATCH_NAME    SUBMITTED   DONE   RUN    IDLE   HOLD  TOTAL JOB_IDS
m65432ab ID: 150019   6/26 15:59      1      4      _      _      5 150019.0-4
m65432ab ID: 150023   6/26 16:18      _      _      1      _      1 150023.0
m65432ab ID: 150024   6/26 16:20      _      _      1      _      1 150024.0

Total for query: 7 jobs; 1 completed, 0 removed, 2 idle, 4 running, 0 held, 0 suspended 
Total for m65432ab: 7 jobs; 1 completed, 0 removed, 2 idle, 4 running, 0 held, 0 suspended 
Total for all users: 17656 jobs; 0 completed, 0 removed, 16634 idle, 1007 running, 15 held, 0 suspended

[m65432ab@submitter ~]$ condor_rm 150019.2
All jobs in cluster 150019 have been marked for removal
[m65432ab@submitter ~]$ condor_q


-- Schedd: submitter.itservices.manchester.ac.uk : <130.88.203.22:9618?... @ 06/26/19 16:20:59
OWNER    BATCH_NAME    SUBMITTED   DONE   RUN    IDLE   HOLD  TOTAL JOB_IDS
m65432ab ID: 150019   6/26 15:59      2      3      _      _      5 150019.0-4
m65432ab ID: 150023   6/26 16:18      _      _      1      _      1 150023.0
m65432ab ID: 150024   6/26 16:20      _      _      1      _      1 150024.0

Total for query: 7 jobs; 1 completed, 1 removed, 2 idle, 3 running, 0 held, 0 suspended
Total for m65432ab: 7 jobs; 1 completed, 1 removed, 2 idle, 3 running, 0 held, 0 suspended
Total for all users: 17656 jobs; 0 completed, 0 removed, 16634 idle, 1007 running, 15 held, 0 suspended

[m65432ab@submitter ~]$ 

to remove an individual job (replace cluster_id.process_id with the number under ID in the output from condor_q.

Last modified on June 26, 2019 at 4:30 pm by Tim Furmston