qhold(1B)
qhold(1B) β hold PBS batch jobs π β¨
okay so bestie, this is the qhold(1B) page from PBS Professional, and it's literally about putting holds on PBS batch jobs. Think group-chat energy but for your scheduler. Let's go π«Ά.
πΈ NAME πΈ
qhold β hold PBS batch jobs. That's it, that's the vibe: making batch jobs not eligible for execution until you say so. π
β¨ SYNOPSIS β¨
qhold [-h <hold list>] <job ID> [<job ID> ...]
qhold --version
π DESCRIPTION π
So qhold places one or more holds on a job. A job that has a hold is not eligible for execution. It can be used on jobs and job arrays, but not on subjobs or ranges of subjobs. No cap.
If a job identified by job ID is in the queued, held, or waiting states, then all that occurs is that the hold type is added to the job. The job is then put into the held state if it resides in an execution queue. It's giving "you wait right there, bestie." π
If the job is running, the result of the qhold command depends upon whether the job can be checkpointed. The job can be checkpointed if the OS supports checkpointing, or if the application being checkpointed supports checkpointing.
If the job can be checkpointed, the following happens:
- The job is checkpointed and its execution is interrupted.
- The resources assigned to the job are released.
- The job is placed in the
heldstate in the execution queue. - The job's
Hold_Typesattribute is set toufor user hold.
If checkpoint / restart is not supported, qhold simply sets the job's Hold_Types attribute to u. The job continues to execute.
A job's dependency places a system hold on the job. When the dependency is satisfied, the system hold is removed. This system hold is the same as the one set by an administrator. If the administrator sets a system hold on a job with a dependency, when the dependency is satisfied, the job becomes eligible for execution.
If the job is in the process of provisioning, it cannot be held. Sorry bestie, that's the rule π.
A hold on a job can be released by the administrator, a Manager, an Operator, or the job owner, when the job reaches the time set in its Execution_Time attribute, or when a dependency clears. See qrls.1B.
π Effect of Privilege on Behavior π
The following table shows the holds and the privilege required to set each β we're presenting it as bullets so it's readable in terminal, but every row is here, fr fr:
uβ Meaning: User. Who can set: Job owner, Operator, Manager, administrator, root.oβ Meaning: Other. Who can set: Operator, Manager, administrator, root.sβ Meaning: System. Who can set: Manager, administrator, root, PBS (dependency).nβ Meaning: None. Who can set: Job owner, Operator, Manager, administrator, root.pβ Meaning: Bad password. Who can set: Administrator, root.
π₯ OPTIONS π₯
okay so options time, and yes (no options) is literally a thing here β iconic.
(no options)β Same as-h u. Applies the user hold to the specified job(s).-h <hold list>β Types of holds to be placed on the job(s). The hold list argument is a string consisting of one or more of the letters"u","o", or"s"in any combination, or one of the letters"n"or"p".--versionβ Theqholdcommand returns its PBS version information and exits. This option can only be used alone.
π¦ OPERANDS π¦
The qhold command can be used on jobs and job arrays, but not on subjobs or ranges of subjobs. The qhold command accepts one or more job IDs in the form:
<sequence number>[.<server name>][@<server name>]
<sequence number>[][.<server name>][@<server name>]
Note that some shells require that you enclose a job array identifier in double quotes. Yes, literally wrap that job array identifier in " " if your shell is being extra π.
π STANDARD ERROR π
The qhold command writes a diagnostic message to standard error for each error occurrence. So if something goes wrong, it's gonna tell you on stderr, periodt.
β EXIT STATUS β
Zeroβ Upon successful processing of all operands.Greater than zeroβ If theqholdcommand fails to process any operand.
π SEE ALSO π
qrls(1B)qalter(1B)qsub(1B)pbs_alterjob(3B)pbs_holdjob(3B)pbs_rlsjob(3B)pbs_job_attributes(7B)pbs_resources(7B)
Catch u later, bestie π β source/version is Local, dated 6 May 2020, and this qhold(1B) page is out. πβ¨
π¦ where this page comes from
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms