qalter(1B)
okay bestie, welcome to qalter(1B) β the PBS page that makes altering batch jobs feel like a group-chat glow-up. π β¨
π NAME π
qalterβ alter pbs batch job. π«Ά
β¨ SYNOPSIS β¨
qalter [-a date_time] [-A account_string] [-c interval] [-e path] [-h
hold_list] [-j join] [-k keep] [-l resource_list] [-L numa_list] [-m
mail_options] [-M user_list] [-n node exclusive] [-N name] [-o path] [-p
priority] [-q] [-r c] [-S path] [-t array_range] [-u user_list] [-v
variable_list] [-W additional_attributes] [-x exec_host]
job_identifier...
πΈ DESCRIPTION πΈ
The qalter command modifies the attributes of the job or jobs specified by job_identifier on the command line. Only those attributes listed as options on the command will be modified. If any of the specified attributes cannot be modified for a job for any reason, none of that job's attributes will be modified β yeah, it's giving all-or-nothing for that job, no cap. π
The qalter command accomplishes the modifications by sending a Modify Job batch request to the batch server which owns each job. Periodt. π
π OPTIONS π
Okay bestie, this is the flag-by-flag part. Every option and every little caveat stays exactly where it belongs. π
-a date_timeβ Replaces the time at which the job becomes eligible for execution. Thedate_timeargument syntax is[[[[CC]YY]MM]DD]hhmm[.SS]..- If the month,
MM, is not specified, it will default to the current month if the specified dayDD, is in the future. Otherwise, the month will be set to next month. Likewise, if the day,DD, is not specified, it will default to today if the timehhmmis in the future. Otherwise, the day will be set to tomorrow. - This attribute can be altered once the job has begun execution, but it will not take affect until the job is rerun.
- If the month,
-A account_stringβ Replaces the account string associated with the job.- This attribute cannot be altered once the job has begun execution.
-c intervalβ Replaces the interval at which the job will be checkpointed. If the job executes upon a host which does not support checkpoint, this option will be ignored.- The
intervalargument is specified as:nβ No checkpointing is to be performed.sβ Checkpointing is to be performed only when the server executing the job is shutdown.cβ Checkpointing is to be performed at the default minimum cpu time for the queue from which the job is executing.c=minutesβ Checkpointing is to be performed at an interval ofminutes, which is the integer number of minutes of CPU time used by the job. This value must be greater than zero. If the number is less than the default checkpoint time, the default time will be used.
- This attribute can be altered once the job has begun execution, but the new value does not take affect until the job is rerun.
- The
-e pathβ Replaces the path to be used for the standard error stream of the batch job. Thepathargument is of the form[hostname:]path_name, wherehostnameis the name of a host to which the file will be returned andpath_nameis the path name on that host in the syntax recognized by POSIX 1003.1. The argument will be interpreted as follows:path_nameβ Wherepath_nameis not an absolute path name, then theqaltercommand will expand the path name relative to the current working directory of the command. The command will supply the name of the host upon which it is executing for thehostnamecomponent.hostname:path_nameβ Wherepath_nameis not an absolute path name, then theqaltercommand will not expand the path name. The execution server will expand it relative to the home directory of the user on the system specified byhostname.path_nameβ Wherepath_namespecifies an absolute path name, thenqalterwill supply the name of the host on which it is executing for thehostname.hostname:path_nameβ Wherepath_namespecifies an absolute path name, the path will be used as specified.- This attribute can be altered once the job has begun execution, but it will not take affect until the job is rerun.
-h hold_listβ Updates the types of holds on the job. Thehold_listargument is a string of one or more of the following characters:uβ Add the USER type hold.sβ Add the SYSTEM type hold if the user has the appropriate level of privilege. [Typically reserved to the batch administrator.]oβ Add the OTHER (or OPERATOR ) type hold if the user has the appropriate level of privilege. [Typically reserved to the batch administrator and batch operator.]nβ Set to none; that is clear the hold types which could be applied with the users level of privilege.- Repetition of characters is permitted, but
"n"may not appear in the same option argument with the other three characters. This attribute can be altered once the job has begun execution, but the hold will not take affect until the job is rerun.
-j joinβ Declares which standard streams of the job will be merged together. Thejoinargument value may be the characters"oe"and"eo", or the single character"n".- A argument value of
oedirects that the standard output and standard error streams of the job will be merged, intermixed, and returned as the standard output. - A argument value of
eodirects that the standard output and standard error streams of the job will be merged, intermixed, and returned as the standard error. - A value of
ndirects that the two streams will be two separate files. - This attribute can be altered once the job has begun execution, but it will not take affect until the job is rerun.
- A argument value of
-k keepβ Defines which if either of standard output or standard error of the job will be retained on the execution host. If set for a stream, this option overrides the path name for that stream.- The argument is either the single letter
"e","o", or"n", or one or more of the letters"e"and"o"combined in either order. nβ No streams are to be retained.eβ The standard error stream is to retained on the execution host. The stream will be placed in the home directory of the user under whose user id the job executed. The file name will be the default file name given by:job_name.esequencewherejob_nameis the name specified for the job, andsequenceis the sequence number component of the job identifier.oβ The standard output stream is to be retained on the execution host. The stream will be placed in the home directory of the user under whose user id the job executed. The file name will be the default file name given by:job_name.osequencewherejob_nameis the name specified for the job, andsequenceis the sequence number component of the job identifier.eoβ Both the standard output and standard error streams will be retained.oeβ Both the standard output and standard error streams will be retained.- This attribute cannot be altered once the job has begun execution.
- The argument is either the single letter
-l resource_listβ Modifies the list of resources that are required by the job. TheResource_Listargument is in the following syntax:resource_name[=[value]][,resource_name[=[value]],...]- If a requested modification to a resource would exceed the resource limits for jobs in the current queue, the server will reject the request.
- If the job is running, only certain, resources can be altered. Which resources can be altered in the run state is system dependent. A user may only lower the limit for those resources.
-L numa_listβ Defines the NUMA-aware resource requests for NUMA hardware. This option will work with non-NUMA hardware.
Note: The-Loption is available with Torque 6.0 and later. The-Loption uses a different syntax than the-l resource_listoption.
-m mail_optionsβ Replaces the set of conditions under which the execution server will send a mail message about the job. Themail_optionsargument is a string which consists of the single character"n", or one or more of the characters"a","b", and"e".- If the character
"n"is specified, no mail will be sent. - For the letters
"a","b", and"e":aβ mail is sent when the job is aborted by the batch system.bβ mail is sent when the job begins execution.eβ mail is sent when the job terminates.
- If the character
-M user_listβ Replaces the list of users to whom mail is sent by the execution server when it sends mail about the job. Theuser_listargument is of the formuser[@host][,user[@host],...].-n node exclusiveβ Sets whether or not the job has node exclusive access. To specify node exclusive access, just use the single character'y'. To specify that the job should not have node exclusive access, just use the single character'n'.-N nameβ Renames the job. The name specified may be up to and including 15 characters in length. It must consist of printable, non white space characters with the first character alphabetic.-o pathβ Replaces the path to be used for the standard output stream of the batch job. Thepathargument is of the form[hostname:]path_name, wherehostnameis the name of a host to which the file will be returned andpath_nameis the path name on that host in the syntax recognized by POSIX. The argument will be interpreted as follows:path_nameβ Wherepath_nameis not an absolute path name, then theqaltercommand will expand the path name relative to the current working directory of the command. The command will supply the name of the host upon which it is executing for thehostnamecomponent.
Continuing the path-name tea, because the details matter:
hostname:path_nameβ Ifpath_nameis not an absolute path name, thenqalterwill not expand the path name. The execution server will expand it relative to the home directory of the user on the system specified byhostname.path_nameβ Ifpath_namespecifies an absolute path name, thenqalterwill supply the name of the host on which it is executing for thehostname.hostname:path_nameβ Ifpath_namespecifies an absolute path name, the path will be used as specified.
This attribute can be altered once the job has begun execution, but it will not take effect until the job is rerun. periodt. π
-p priorityβ Replaces the priority of the job. The priority argument must be an integer between-1024and+1023inclusive.
This attribute can be altered once the job has begun execution, but it will not take effect until the job is rerun.
-qβ Use an asynchronous (non-blocking) alter call to the server. no waiting around, bestie. β¨-r cβ Declares whether the job is rerunable. See theqreruncommand. The option argumentcis a single character. PBS recognizes the following characters:yandn.
If the argument is y, the job is marked rerunable. If the argument is n, the job is marked as not rerunable.
-S pathβ Declares the shell that interprets the job script.
The option argument path_list is in the form:
path[@host][,path[@host],...]
Only one path may be specified for any host named. Only one path may be specified without the corresponding host name. The path selected will be the one with the host name that matched the name of the execution host. If no matching host is found, then if present the path specified without a host will be selected.
If the -S option is not specified, the option argument is the null string, or no entry from the path_list is selected, the execution will use the login shell of the user on the execution host.
This attribute can be altered once the job has begun execution, but it will not take effect until the job is rerun.
-t array_rangeβ Thearray_rangeargument is an integer id or a range of integers. Multiple ids or id ranges can be combined in a comma-delimited list. Examples:-t 1-100or-t 1,10,50-100.
If an array range isnβt specified, the command tries to operate on the entire array. The command acts on the array (or specified range of the array) just as it would on an individual job.
An optional slot limit can be specified to limit the amount of jobs that can run concurrently in the job array. The default value is unlimited. The slot limit must be the last thing specified in the array_request and is delimited from the array by a percent sign (%).
qalter 15.napali[] -t %20
Here, the array 15.napali[] is configured to allow a maximum of 20 concurrently running jobs.
Note: Slot limits can be applied at job submit time with qsub, or can be set in a global server parameter policy with max_slot_limit.
-u user_listβ Replaces the user name under which the job is to run on the execution system.
The user_list argument is of the form:
user[@host][,user[@host],...]
Only one user name may be given per specified host. Only one of the user specifications may be supplied without the corresponding host specification. That user name will be used for execution on any host not named in the argument list.
This attribute cannot be altered once the job has begun execution. hard no after it starts, fr fr. π«Ά
-vβ Expand the list of environment variables that are exported to the job. This names environment variables from theqsubcommand environment that are made available to the job when it executes. Thevariable_listis a comma-separated list of strings of the formvariableorvariable=value. These variables and their values are passed to the job.-xβ Modify theexec_hostfield of the job.-W additional_attributesβ The-Woption allows for the modification of additional job attributes. The general syntax of the-Wis in the form:
-W attr_name=value[,attr_name=value...]
Note if white space occurs anywhere within the option argument string or the equal sign, =, occurs within an attribute_value string, then the string must be enclosed with either single or double quote marks. quote it or itβs giving chaos. π¦
PBS currently supports the following attributes within the -W option.
depend=dependency_listβ Redefines the dependencies between this and other jobs. Thedependency_listis in the form:type[:argument[:argument...][,type:argument...].
The argument is either a numeric count or a PBS job id according to type. If argument is a count, it must be greater than 0. If it is a job id and is not fully specified in the form: seq_number.server.name, it will be expanded according to the default server rules. If argument is null (the preceding colon need not be specified), the dependency of the corresponding type is cleared (unset).
synccount:countβ This job is the first in a set of jobs to be executed at the same time.countis the number of additional jobs in the set.syncwith:jobidβ This job is an additional member of a set of jobs to be executed at the same time.jobidis the job identifier of the first job in the set.after:jobid[:jobid...]β This job may be scheduled for execution at any point after jobsjobidhave started execution.afterok:jobid[:jobid...]β This job may be scheduled for execution only after jobsjobidhave terminated with no errors.afternotok:jobid[:jobid...]β This job may be scheduled for execution only after jobsjobidhave terminated with errors.afterany:jobid[:jobid...]β This job may be scheduled for execution after jobsjobidhave terminated, with or without errors.on:countβ This job may be scheduled for execution aftercountdependencies on other jobs have been satisfied. This form is used in conjunction with one of the before forms, see below.before:jobid[:jobid...]β When this job has begun execution, then jobsjobid...may begin.beforeok:jobid[:jobid...]β If this job terminates execution without errors, then jobsjobid...may begin.beforenotok:jobid[:jobid...]β If this job terminates execution with errors, then jobsjobid...may begin.beforeany:jobid[:jobid...]β When this job terminates execution, jobsjobid...may begin.
If any of the before forms are used, the job referenced by jobid must have been submitted with a dependency type of on.
The job specified in any of the before forms must have the same owner as the job being altered. Otherwise, the dependency will not take effect.
Error processing: of the existence, state, or condition of the job on which the newly submitted job is a deferred service, i.e. the check is performed after the job is queued. If an error is detected, the new job will be deleted by the server. Mail will be sent to the job submitter stating the error. the server is snitching via email, lowkey. π
group_list=g_listβ Alters the group name under which the job is to run on the execution system.
The g_list argument is of the form:
group[@host][,group[@host],...]
Only one group name may be given per specified host. Only one of the group specifications may be supplied without the corresponding host specification. That group name will be used for execution on any host not named in the argument list.
stagein=file_list,stageout=file_listβ Alters which files are staged (copied) in before job start or staged out after the job completes execution. Thefile_listis in the form:local_file@hostname:remote_file[,...].
The name local_file is the name on the system where the job executes. It may be an absolute path or a path relative to the home directory of the user. The name remote_file is the destination name on the host specified by hostname. The name may be absolute or relative to the userβs home directory on the destination host. file movement, but make it fashion. π
π§Ύ OPERANDS π§Ύ
The qalter command accepts one or more job_identifier operands of the form:
sequence_number[.server_name][@server]
π¨ STANDARD ERROR π¨
Any error condition, either in processing the options or the operands, or any error received in reply to the batch requests will result in an error message being written to standard error. yep, stderr is where the drama goes. π
πͺ EXIT STATUS πͺ
Upon successful processing of all the operands presented to the qalter command, the exit status will be a value of zero.
If the qalter command fails to process any operand, the command exits with a value greater than zero.
π SEE ALSO π
qsub(1B)qstat(1B)pbs_alterjob(3B)pbs_statjob(3B)pbs_selectjob(3B)pbs_resources_*(7B), where*is system type- the PBS ERS
okay thatβs the whole vibe, bestie β your local qalter(1B) page, mwah π
β¨
π¦ where this page comes from
- epel 9: torque-client 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
- Copyright (c) 1999-2000 Veridian Information Solutions, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms