---+ Removing Jobs When using the Condor cluster, you can query your condor jobs as so: <verbatim> user@patas:~$ condor_q user -- Submitter: patas.ling.washington.edu : <192.168.100.50:50435> : patas.ling.washington.edu ID OWNER SUBMITTED RUN_TIME ST PRI SIZE CMD 122056.0 user 1/19 13:25 0+00:00:01 H 0 0.0 script.sh 122056.1 user 1/19 13:25 0+00:00:01 H 0 0.0 script.sh 122056.2 user 1/19 13:25 0+00:00:01 H 0 0.0 script.sh 122056.3 user 1/19 13:25 0+00:00:01 H 0 0.0 script.sh 4 jobs; 0 completed, 0 removed, 0 idle, 0 running, 4 held, 0 suspended </verbatim> Where user is your UW netid. When you have jobs that are Held (JobStatus (ST) == H) or otherwise not working, you can remove all of your user jobs with: =condor_rm user= To remove all of your jobs that are held or suspended, you can use: <verbatim>condor_rm -constraint "JobStatus == 5 || JobStatus == 6"</verbatim> Where JobStatus code 5 is Held and code 6 is suspended. ---+ Removing Jobs Automatically on Logout To remove held and suspended jobs automatically, add the previous line to your bash logout script at ~/.bash_logout: <verbatim> ~/.bash_logout condor_rm -constraint "JobStatus == 5 || JobStatus == 6" </verbatim> You can add =&> /dev/null= to the end of this script to suppress the status message on logout. -- Main.trimblet - 2014-01-19
This topic: Main
>
HowToUseCondor
>
RemovingCondorJobsAutomatically
Topic revision: r1 - 2014-01-19 - trimblet
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback