Skip to main content

qbretire

Description

qretire is used to "shrink" the number of job instances running, without throwing away work performed.

Will request a job instance to release it host, and then go prematurely to "complete" state, even if there are pending agenda items. This command depends upon the job type and will only work if the job that is running supports a qube agenda based system.

Usage

qbretire [options] jobID... | 0

where JobID is one or more job IDs, and 0 is a wild card token representing all the user's jobs.

Options

OptionDescription
--workRetire work (default: on)
--subjobRetire subjobs (default: on)
--runningRetire running jobs
--user stringRetire jobs for user string
--type string --prototype stringRetire jobs with string type
--status stringRetire jobs with string status (ex. pending)
--name stringRetire jobs with string name
--kind stringRetire jobs of string kind
--pid intRetire jobs with process ID int
--pgrp intRetire jobs in int process group
--priority intRetire jobs with int priority
--cluster stringRetire jobs in string cluster
--cpus intRetire jobs with a total of int subjobs
--xmlOutput in XML format
--helpCommand help
--versionCommand version

Notes

This command only works on running jobs.

Examples

Retire only subjob 12354.0:

% qbretire 12354.0

Retire all subjobs in 12345:

% qbretire 12345

Retire all of user anthony's jobs:

% qbretire --user anthony 0

Retire all of user anthony's running jobs:

% qbretire --running --user anthony 0

See also

qbmodify

qbkill