qdisable(8B)
π qdisable β bestie, let's close this queue down
okay so real talk, this is qdisable(8B) from the PBS Professional manual, and it's genuinely one of the most useful little commands ever. picture this: you've got a queue, and you want it to stop taking new jobs. that's it. that's the whole vibe. β¨
π NAME π
qdisable β literally just prevents a queue from accepting jobs. no cap, that's the entire job description.
π¦ SYNOPSIS π¦
qdisable <destination> [<destination> ...]
qdisable --version
like, you can hit it with one or more destinations, or you can just ask it what version it's running. pick your fighter π
πΈ DESCRIPTION πΈ
okay so here's the tea β β qdisable prevents a queue from accepting batch jobs. mechanically, it sets the value of the queue's enabled attribute to False. that's the actual thing it does, no cap.
if the command is accepted, the queue no longer accepts Queue Job requests. but here's the important part bestie β jobs already in the queue continue to be processed. they're not getting kicked out or anything, they just finish up like normal. so you can absolutely use this to drain a queue of jobs, which is lowkey iconic when you need to do maintenance or just want the queue to chill for a sec. π§
π Required Permission
okay so this is the bouncer-at-the-club part: in order to execute qdisable, the user must have PBS Operator or Manager privilege. if you don't have it, you're not getting in, sorry bestie π
β¨ OPTIONS β¨
--versionβ theqdisablecommand returns its PBS version information and exits. heads up though: this option can only be used alone. it's a solo act, no plus-ones. π
π OPERANDS π
the qdisable command accepts one or more space-separated destination operands. the operands take any of the following forms:
<queue name>β prevents specified queue at default server from accepting jobs.@<server name>β prevents all queues at specified server from accepting jobs. (all of them. every single one. go off π)<queue name>@<server name>β prevents specified queue at specified server from accepting jobs.
and here's the one that trips people up: to prevent all queues at the default server from accepting jobs, you don't use qdisable at all β you use the qmgr command:
Qmgr: set queue @default enabled=false
iykyk π«Ά
π STANDARD ERROR π
the qdisable command writes a diagnostic message to standard error for each error occurrence. so if multiple things go wrong, you get multiple messages. it's not gonna hide the mess from you, bestie π
π EXIT STATUS π
- Zero β upon successful processing of all the operands. slay. everything worked. π
- Greater than zero β if the
qdisablecommand fails to process any operand. not slay. something went sideways. π
β SEE ALSO β
pbs_server(8B), qmgr(8B), and qenable(8B) β go read those too, they're the friend group this command runs with. qenable is literally the opposite of this one, so if you ever need to undo the thing, you know where to go π
tiny reminder from your girl: disabling a queue does not kill the jobs already in it. they keep processing. if you were hoping this would nuke everything β it will not. it's a drain, not a delete. periodt. π
and that's the whole page, bestie! this edition of qdisable(8B) is from Local, dated 6 May 2020 β so yes, she's a classic, but she still serves. πβ¨π¦
π¦ 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