CONDOR_QSUB(1)
π condor_qsub β fresh from the HTCondor Manual β¨
okay bestie, buckle UP β this is the condor_qsub page, and we are doing it thoroughly. Every flag, every default, every weird little caveat. No skips. Periodt. π
πΈ NAME πΈ
condor_qsub β straight out of the HTCondor Manual.
Queue jobs that use PBS/SGE-style submission π
π¦ SYNOPSIS π¦
condor_qsub [--version]
condor_qsub [Specific options ] [Directory options ] [Environmental options ] [File options ] [Notification options ] [Resource options ] [Status options ] [Submission options ] commandfile
π DESCRIPTION π
So like, condor_qsub submits an HTCondor job. That job is specified in a PBS/Torque style or an SGE style. It also lets you submit dependent jobs without having to spell out the entire dependency graph at submission time. And ngl β doing it that way is neither as efficient as HTCondor's DAGMan, nor as functional as SGE's qsub or qalter. It's just the vibe. condor_qsub is basically a minimal translator, existing so you can run software that was originally written to talk to PBS, Torque, and SGE inside an HTCondor pool. π«Ά
condor_qsub attempts to behave like qsub. Less than half of the qsub functionality is implemented β fr fr, that's the deal. The option descriptions below literally exist to tell you the differences between how qsub behaves and how condor_qsub behaves. Any qsub options not listed here? Not supported. And some concepts that live in PBS and SGE just don't apply to HTCondor at all, so those options aren't implemented. π
For a full listing of qsub options, please see:
- POSIX : β
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qsub.html - SGE : β
http://gridscheduler.sourceforge.net/htmlman/htmlman1/qsub.html - PBS/Torque : β
http://docs.adaptivecomputing.com/torque/4-1-3/Content/topics/commands/qsub.htm
condor_qsub accepts either command line options or the single file, commandfile, that contains all of the commands. Pick your fighter. β
And the plot twist: condor_qsub does the opposite of job submission within the grid universe batch grid type β because that takes HTCondor jobs submitted with HTCondor syntax and submits them to PBS, SGE, or LSF. Iconic mirror moment. πͺ
π₯ OPTIONS π₯
-a date_timeβ (Submission option) Specify a deferred execution date and time. The PBS/Torque syntax of date_time is a string in the form[[[[CC]YY]MM]DD]hhmm[.SS]. The portions of this string which are optional areCC,YY,MM,DD, andSS. For SGE,MMandDDare not optional. For PBS,MMandDDare optional.condor_qsubfollows the PBS style.-A account_stringβ (Status option) Uses group accounting, where the string account_string is the accounting group associated with this job. Unlike SGE, there is no default group of"sge". π-b y|nβ (Submission option) Using the SGE definition of its-boption, a value ofycausescondor_qsubto not parse the file for additionalcondor_qsubcommands. The default value isn. If the command line argument-f filenameis also specified, it negates a value ofy.-condor-keep-filesβ (Specific option) Directs HTCondor to not remove temporary files generated bycondor_qsub, such as HTCondor submit files and sentinel jobs. These temporary files may be important for debugging. Keep them, bestie, you'll thank yourself later. π«Ά-cwdβ (Directory option) Specifies the initial directory in which the job will run to be the current directory from which the job was submitted. This setsinitialdirforcondor_submit.-d pathor-wd pathβ (Directory option) Specifies the initial directory in which the job will run to be path. This setsinitialdirforcondor_submit.-e filenameβ (File option) Specifies thecondor_submitcommand error, the file wherestderris written. If not specified, set to the default name of<commandfile>.e<ClusterId>, where<commandfile>is thecondor_qsubargument, and<ClusterId>is the job attributeClusterIdassigned for the job.-f qsub_fileβ (Specific option) Parse qsub_file to search for and set additionalcondor_submitcommands. Within the file, commands will appear as#PBSor#SGE.condor_qsubwill parse the batch file listed as qsub_file.-hβ (Status option) Placed submitted job directly into the hold state.-helpβ (Specific option) Print usage information and exit.-hold_jid <jid>β (Status option) Submits a job in the hold state. This job is released only when a previously submitted job, identified by its cluster ID as<jid>, exits successfully. Successful completion is defined as not exiting with exit code100.
In implementation, there are three jobs that define this SGE feature:
- The first job is the previously submitted job.
- The second job is the newly submitted one that is waiting for the first to finish successfully.
- The third job is what SGE calls a sentinel job; this is an HTCondor local universe job that watches the history for the first job's exit code. This third job will exit once it has seen the exit code and, for a successful termination of the first job, run
condor_releaseon the second job.
If the first job is an array job, the second job will only be released after all individual jobs of the first job have completed. π
-i [hostname:]filenameβ (File option) Specifies thecondor_submitcommand input, the file from whichstdinis read.-j charactersβ (File option) Acceptable characters for this option aree,o, andn. The only sequence that is relevant iseo; it specifies that both standard output and standard error are to be sent to the same file.- The file will be the one specified by the
-ooption, if both the-oand-eoptions exist. - The file will be the one specified by the
-eoption, if only the-eoption is provided. - If neither the
-onor the-eoptions are provided, the file will be the default used for the-ooption.
- The file will be the one specified by the
-l resource_specβ (Resource option) Specifies requirements for the job, such as the amount of RAM and the number of CPUs. Only PBS-style resource requests are supported. resource_spec is a comma separated list of key/value pairs. Each pair is of the formresource_name=value.resource_nameβarch| value:string| SetsArchmachine attribute. Enclose in double quotes.resource_nameβfile| value:size| Disk space requested.resource_nameβhost| value:string| Host machine on which the job must run.resource_nameβmem| value:size| Amount of memory requested.resource_nameβnodes| value:{<node_count> | <hostname>} [:ppn=<ppn>] [:gpus=<gpu>] [:<property> [:<property>] ...] [+ ...]| Number and/or properties of nodes to be used. For examples, please seehttp://docs.adaptivecomputing.com/torque/4-1-3/Content/topics/2-jobs/requestingRes.htm#qsubresource_nameβopsys| value:string| SetsOpSysmachine attribute. Enclose in double quotes.resource_nameβprocs| value:integer| Number of CPUs requested.
A size value is an integer specified in bytes, following the PBS/Torque default. Append Kb, Mb, Gb, or Tb to specify the value in powers of two quantities greater than bytes.
-m a|e|nβ (Notification option) Identify when HTCondor sends notification e-mail.- If
a, send e-mail when the job terminates abnormally. - If
e, send e-mail when the job terminates. - If
n, never send e-mail.
- If
-M e-mail_addressβ (Notification option) Sets the destination address for HTCondor e-mail. π§-o filenameβ (File option) Specifies thecondor_submitcommand output, the file wherestdoutis written. If not specified, set to the default name of<commandfile>.o<ClusterId>, where<commandfile>is thecondor_qsubargument, and<ClusterId>is the job attributeClusterIdassigned for the job.-p integerβ (Status option) Sets the priority submit command for the job, with0being the default. Jobs with higher numerical priority will run before jobs with lower numerical priority.-printβ (Specific option) Send tostdoutthe contents of the HTCondor submit description file thatcondor_qsubgenerates. β¨-r y|nβ (Status option) The default value ofyimplements the default HTCondor policy of assuming that jobs that do not complete are placed back in the queue to be run again. Whenn, job submission is restricted to only running the job if the job ClassAd attributeNumJobStartsis currently0. This identifies the job as not re-runnable, limiting it to start once.
Lowkey important: that -r n one means your job gets exactly one shot. No takebacks. π
-Sshell β (submission option)</p> bestie this one sets the path AND the executable name of a shell. What it does is lowkey sneaky: it rewrites the HTCondor submit description file it produces so that the executable becomes a wrapper script. Inside that submit description file you'll getexecutable = <shell>andarguments = <commandfile>. β¨-tstart[-stop:step]β (submission option)</p> this is the queue-a-bunch-of-almost-identical-jobs button, and the SGE-style syntax is fully supported π. Fyi start, stop, and step are all integers. start is the starting index of the jobs, stop is the ending index and it's inclusive, and step is the step size as you walk through the indices.
β οΈ Heads up bestie: using more than one processor or node in a job will not work with this option. Like, at all. π
-testβ (specific option)</p> the "let's pretend" button π§. It's meant for testing a potential job submission: it parses files and commands so it can generate error output. It produces the HTCondor submit description file and then removes it again. And it never submits the job, even if there are zero errors. Iconic behaviour honestly.-vvariable list β (environmental option)</p> sets the submit command environment for the job. The variable list is just as defined for thesubmitcommand. Note that the syntax you need is specialized to deal with quote marks and white space characters β so like, don't freestyle it π«Ά.-Vβ (environmental option)</p> setsgetenv = Truein the submit description file. That's it, that's the whole vibe. β-Wattr_name=attr_value[,attr_name=attr_value...] β (file option)</p> so PBS/Torque supports a whole bunch of attributes, butcondor_qsubonly supports the namesstageinandstageoutfor attr_name π. The format of attr_value forstageinandstageoutislocal_file@hostname:remote_file[,...]and we strip it down toremote_file[,...]. HTCondor's file transfer mechanism gets used after that, if needed.-versionβ (specific option)</p> prints version information for thecondor_qsubprogram and exits π. Note thatcondor_qsubhas its own version numbers, which are separate from those of HTCondor.
π¦ EXIT STATUS π¦
Ok so this part is short but important, no cap:
condor_qsubexits with a status value of 0 (zero) upon success π- and it exits with the value 1 (one) upon failure to submit a job π
π AUTHOR π
HTCondor Team β the whole squad, fr fr π«Ά
π COPYRIGHT π
1990-2026, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0.
and that's a wrap bestie π
β¨ this little gem comes from the HTCondor source, version Oct 16, 2026, and you can find it filed under CONDOR_QSUB(1). slay, go queue some jobs π¦πΈ
π¦ where this page comes from
- fedora 43: condor 25.14.1-1.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms