Submit a job
Jobs are submitted using the condor_submit command:
$ condor_submit <FILENAME>
After running this command, the ID of the newly-submitted job will be output. For example, to submit a job defined by the submit description file test.job :
$ condor_submit test.job
Submitting job(s).
1 job(s) submitted to cluster 38.
This cluster ID (38 in this example) can be used to manage the job in the future.
Show status information
You can view details of submitted jobs using the condor_q command:
$ condor_q
-- Schedd: hex.ppe.gla.ac.uk : <172.20.203.50:9618?... @ 05/30/17 11:18:00
OWNER BATCH_NAME SUBMITTED DONE RUN IDLE TOTAL JOB_IDS
gpstewart CMD: sleep.sh 5/30 11:17 _ 1 _ 1 42.0
1 jobs; 0 completed, 0 removed, 0 idle, 1 running, 0 held, 0 suspended
You can view information about the state of the Condor system as a whole using the condor_status command:
$ condor_status
Name OpSys Arch State Activity LoadAv Mem ActvtyTime
slot1@node004.ppe.gla.ac.uk LINUX X86_64 Unclaimed Idle 0.000 64010 6+00:49:19
slot1_1@node004.ppe.gla.ac.uk LINUX X86_64 Claimed Busy 0.000 128 0+00:00:03
Machines Owner Claimed Unclaimed Matched Preempting Drain
X86_64/LINUX 2 0 1 1 0 0 0
Total 2 0 1 1 0 0 0
Within Condor, each compute node is configured with a single 'slot' which contains all the resources held by that node; this slot is then partitioned such that running jobs receive the resources they request and no more. In the above example, there are two slots associated with node004 (which has 32 CPU cores and 64 GB of memory); slot1_1 represents a running, single-core job with 128 MB of memory, while slot1 contains the remaining unallocated resources on the compute node.
Remove a job
Jobs are removed using the condor_rm command:
$ condor_rm <CLUSTER_ID>
To remove the job with cluster ID 43 :
$ condor_rm 43
All jobs in cluster 43 have been marked for removal
View history
You can view information about historical job submission using the condor_history command:
$ condor_history
ID OWNER SUBMITTED RUN_TIME ST COMPLETED CMD
43.0 gpstewart 5/30 11:28 X ??? /home/grid/gpstewart/condor/sleep/sleep.sh
42.0 gpstewart 5/30 11:17 0+00:00:31 C 5/30 11:18 /home/grid/gpstewart/condor/sleep/sleep.sh
41.0 gpstewart 5/11 14:10 0+00:00:06 C 5/11 14:10 /home/grid/gpstewart/condor/mail/mail.sh
40.0 gpstewart 5/11 14:09 0+00:00:07 C 5/11 14:09 /home/grid/gpstewart/condor/mail/mail.sh
39.0 gpstewart 5/11 14:00 0+00:00:06 C 5/11 14:00 /home/grid/gpstewart/condor/mail/mail.sh
As noted previously, the history which is reported by Condor provides information for jobs submitted via the scheduler on the local machine only, and not across the whole pool. |