qhold.1B 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
  2. .\" For more information, contact Altair at www.altair.com.
  3. .\"
  4. .\" This file is part of the PBS Professional ("PBS Pro") software.
  5. .\"
  6. .\" Open Source License Information:
  7. .\"
  8. .\" PBS Pro is free software. You can redistribute it and/or modify it under the
  9. .\" terms of the GNU Affero General Public License as published by the Free
  10. .\" Software Foundation, either version 3 of the License, or (at your option) any
  11. .\" later version.
  12. .\"
  13. .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  14. .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. .\" FOR A PARTICULAR PURPOSE.
  16. .\" See the GNU Affero General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU Affero General Public License
  19. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. .\"
  21. .\" Commercial License Information:
  22. .\"
  23. .\" For a copy of the commercial license terms and conditions,
  24. .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
  25. .\" or contact the Altair Legal Department.
  26. .\"
  27. .\" Altair’s dual-license business model allows companies, individuals, and
  28. .\" organizations to create proprietary derivative works of PBS Pro and
  29. .\" distribute them - whether embedded or bundled with other software -
  30. .\" under a commercial license agreement.
  31. .\"
  32. .\" Use of Altair’s trademarks, including but not limited to "PBS™",
  33. .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  34. .\" trademark licensing policies.
  35. .\"
  36. .TH qhold 1B "30 November 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B qhold
  39. \- hold PBS batch jobs
  40. .SH SYNOPSIS
  41. .B qhold
  42. [-h <hold list>] <job ID> [<job ID> ...]
  43. .br
  44. .B qhold
  45. --version
  46. .SH DESCRIPTION
  47. Places one or more holds on a job. A job that has a hold is not
  48. eligible for execution. Can be used on jobs and job arrays, but not
  49. on subjobs or ranges of subjobs.
  50. If a job identified by
  51. .I job ID
  52. is in the queued, held, or waiting states, then all that occurs is
  53. that the hold type is added to the job. The job is then put into the
  54. held state if it resides in an execution queue.
  55. If the job is running, the result of the
  56. .B qhold
  57. command depends upon whether the job can be checkpointed.
  58. The job can be checkpointed if the OS supports checkpointing, or
  59. if the application being checkpointed supports checkpointing. See
  60. the
  61. .I PBS Professional Administrator's Guide.
  62. If the job can be checkpointed, the following happens:
  63. .RS 3
  64. The job is checkpointed and its execution is interrupted.
  65. The resources assigned to the job are released.
  66. The job is placed in the held state in the execution queue.
  67. The job's
  68. .I Hold_Types
  69. attribute is set to
  70. .I u
  71. for
  72. .I user hold.
  73. .RE
  74. If checkpoint / restart is not supported,
  75. .B qhold
  76. simply sets the
  77. job's
  78. .I Hold_Types
  79. attribute to
  80. .I u.
  81. The job continues to execute.
  82. A job's dependency places a
  83. .I system
  84. hold on the job. When the
  85. dependency is satisfied, the
  86. .I system
  87. hold is removed. This
  88. .I system
  89. hold
  90. is the same as the one set by an administrator. If the administrator
  91. sets a
  92. .I system
  93. hold on a job with a dependency, when the
  94. dependency is satisfied, the job becomes eligible for execution.
  95. If the job is in the process of provisioning, it cannot be held.
  96. A hold on a job can be released by the administrator, a Manager,
  97. an Operator, or the job owner, when the job reaches the time set
  98. in its
  99. .I Execution_Time
  100. attribute, or when a dependency clears. See
  101. .B qrls.1B.
  102. .B Effect of Privilege on Behavior
  103. .br
  104. The following table shows the holds and the privilege required to set each:
  105. .RS 3
  106. Hold Meaning Who Can Set
  107. .br
  108. --------------------------------------------------------------
  109. .IP u 6
  110. User Job owner, Operator, Manager,
  111. .br
  112. administrator, root
  113. .IP o 6
  114. Other Operator, Manager, administrator, root
  115. .IP s 6
  116. System Manager, administrator, root,
  117. .br
  118. PBS (dependency)
  119. .IP n 6
  120. None Job owner, Operator, Manager,
  121. .br
  122. administrator, root
  123. .IP p 6
  124. Bad password Administrator, root
  125. .RE
  126. .LP
  127. .SH OPTIONS
  128. .IP "(no options)" 8
  129. Same as
  130. .I -h u.
  131. Applies the
  132. .I user
  133. hold to the specified job(s).
  134. .IP "-h <hold list>" 8
  135. Types of holds to be placed on the job(s).
  136. The
  137. .I hold list
  138. argument is a string consisting of one or more of the letters
  139. .I """u""", """o""",
  140. or
  141. .I """s"""
  142. in any combination, or one of the letters
  143. .I """n"""
  144. or
  145. .I """p""".
  146. .IP "--version" 8
  147. The
  148. .B qhold
  149. command returns its PBS version information and exits.
  150. This option can only be used alone.
  151. .SH OPERANDS
  152. The
  153. .B qhold
  154. command can be used on jobs and job arrays, but not on subjobs or ranges
  155. of subjobs. The
  156. .B qhold
  157. comand accepts one or more
  158. .I job IDs
  159. in the form:
  160. .RS 4
  161. .I <sequence number>[.<server name>][@<server name>]
  162. .br
  163. .I <sequence number>[][.<server name>][@<server name>]
  164. .RE
  165. Note that some shells require that you enclose a job array identifier in
  166. double quotes.
  167. .SH STANDARD ERROR
  168. The
  169. .B qhold
  170. command writes a diagnostic message to standard error for each
  171. error occurrence.
  172. .SH EXIT STATUS
  173. .IP Zero 8
  174. Upon successful processing of all operands
  175. .IP "Greater than zero" 8
  176. If the
  177. .B qhold
  178. command fails to process any operand
  179. .SH SEE ALSO
  180. The
  181. .I PBS Professional User's Guide,
  182. the
  183. .I PBS Professional Administrator's Guide,
  184. qrls(1B), qalter(1B), qsub(1B), pbs_alterjob(3B), pbs_holdjob(3B),
  185. pbs_rlsjob(3B), pbs_job_attributes(7B), pbs_resources(7B)