Skip to main content

qbblock

Description

qbblock requests the Supervisor to suspend a job by immediately killing it, and marking it as blocked. This will effectively stop a job and place it in an idle state to be requeued or killed later.

Usage

qbblock [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
--workBlock work (default: on)
--subjobBlock subjobs (default: on)
--runningBlock running jobs
--pendingBlock pending jobs
--workrunningBlock running work
--workpendingBlock pending work
--subjobrunningBlock running subjob
--subjobpendingBlock pending subjob
--user stringBlock jobs for user string
--type string --prototype stringBlock jobs with string type
--status stringBlock jobs with string status (ex. pending)
--name stringBlock jobs with string name
--kind stringBlock jobs of string kind
--pid intBlock jobs with process ID int
--pgrp intBlock jobs in int process group
--priority intBlock jobs with int priority
--cluster stringBlock jobs in string cluster
--cpus intBlock jobs with a total of int subjobs
--xmlOutput in XML format
--helpCommand help
--versionCommand version

Notes

This command only works on jobs which are considered active. Jobs which have already completed will be ignored. (ex. complete, killed, failed)

In order to kill jobs, the user must have either of the following qube privileges:

  • block
  • admin

Refer to User Permissions or qbusers for more detail on the Qube! permission scheme

Examples

Block only subjob 12354.0:

% qbblock 12354.0

Block all subjobs in 12345:

% qbblock 12345

Block all of user anthony's jobs:

% qbblock --user anthony 0

Block all of user anthony's jobs which are running:

% qbblock --running --user anthony 0

Block only the jobs which are pending in the list of jobs 11234, 1235, and subjob 1236.0:

% qbblock --pending 11234 1235 1236.0

See Also

qbunblock