Skip to main content

qblock

Description

qblock locks the available job slots on a Qube! Worker.

Usage

qblock [options] hostname...

where hostname is the name of the host to be locked. It can be followed by 0 or more hostnames.

Options

OptionDescription
--alllock all hosts
--downlock down hosts
--paniclock panicked hosts
--activelock active hosts
--cluster stringlock hosts in string cluster
--group stringlock hosts in string group
--resources stringlock hosts based upon requirements expression string
--purgeImmediately stop job processes running on Worker
--lockLock the Worker (default: on) (deprecated and implied)
--unlockUnlock the Worker (deprecated: use qbunlock)
--range stringRange string of CPU slots to lock/unlock
--valueSpecify custom lock
--file stringUse the lock in the specified string file
--helpCommand help
--versionCommand version

Notes

Examples

Locks host render01 CPU slots 0 and 1:

% qblock --range 0,1 --lock render01

Locks all host render01 CPUs:

% qblock render01

See also

qbunlock