1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
*condor_vacate_job*
=====================
vacate jobs in the HTCondor queue from the hosts where they are running
:index:`condor_vacate_job<single: condor_vacate_job; HTCondor commands>`\ :index:`condor_vacate_job command`
Synopsis
--------
**condor_vacate_job** [**-help | -version** ]
**condor_vacate_job** [
**-pool** *centralmanagerhostname[:portnumber]* |
**-name** *scheddname* ] | [**-addr** *"<a.b.c.d:port>"*]
[**-fast** ] *cluster... | cluster.process... | user...* |
**-constraint** *expression* ...
**condor_vacate_job** [
**-pool** *centralmanagerhostname[:portnumber]* |
**-name** *scheddname* ] | [**-addr** *"<a.b.c.d:port>"*]
[**-fast** ] **-all**
Description
-----------
*condor_vacate_job* finds one or more jobs from the HTCondor job queue
and vacates them from the host(s) where they are currently running. The
jobs remain in the job queue and return to the idle state.
A running job running will be sent a soft
kill signal (SIGTERM by default, or whatever is defined as the
``SoftKillSig`` in the job ClassAd), and HTCondor will restart the job
from the beginning somewhere else.
If the **-fast** option is used, the job(s) will be immediately killed.
If the **-name** option is specified, the named *condor_schedd* is
targeted for processing. If the **-addr** option is used, the
*condor_schedd* at the given address is targeted for processing.
Otherwise, the local *condor_schedd* is targeted. The jobs to be
vacated are identified by one or more job identifiers, as described
below. For any given job, only the owner of the job or one of the queue
super users (defined by the :macro:`QUEUE_SUPER_USERS` macro) can vacate the
job.
Using *condor_vacate_job* on jobs which are not currently running has
no effect.
Options
-------
**-help**
Display usage information
**-version**
Display version information
**-pool** *centralmanagerhostname[:portnumber]*
Specify a pool by giving the central manager's host name and an
optional port number
**-name** *scheddname*
Send the command to a machine identified by *scheddname*
**-addr** *"<a.b.c.d:port>"*
Send the command to a machine located at *"<a.b.c.d:port>"*
*cluster*
Vacate all jobs in the specified cluster
*cluster.process*
Vacate the specific job in the cluster
*user*
Vacate jobs belonging to specified user
**-constraint** *expression*
Vacate all jobs which match the job ClassAd expression constraint
**-all**
Vacate all the jobs in the queue
**-fast**
Perform a fast vacate and hard kill the jobs
General Remarks
---------------
Do not confuse *condor_vacate_job* with *condor_vacate*.
*condor_vacate* is given a list of hosts to vacate, regardless of what
jobs happen to be running on them. Only machine owners and
administrators have permission to use *condor_vacate* to evict jobs
from a given host. *condor_vacate_job* is given a list of job to
vacate, regardless of which hosts they happen to be running on. Only the
owner of the jobs or queue super users have permission to use
*condor_vacate_job*.
Examples
--------
To vacate job 23.0:
.. code-block:: console
$ condor_vacate_job 23.0
To vacate all jobs of a user named Mary:
.. code-block:: console
$ condor_vacate_job mary
To vacate all vanilla universe jobs owned by Mary:
.. code-block:: console
$ condor_vacate_job -constraint 'JobUniverse == 5 && Owner == "mary"'
Note that the entire constraint, including the quotation marks, must be
enclosed in single quote marks for most shells.
Exit Status
-----------
*condor_vacate_job* will exit with a status value of 0 (zero) upon
success, and it will exit with the value 1 (one) upon failure.
|