...
More advanced uses of the requirements expression allow Qube! users to route a job to a specific host and also conversely restrict a job from a host.
Requirement | Syntax |
---|---|
Run my job only on |
...
Linux hosts |
...
host.os eq linux | |
Run my job on any host except qb001 |
...
host.name ne "qb001" | |
Run the job on a host with the Maya job type |
...
"maya" in host.jobtypes | |
Run my job only on dual processor hosts |
...
host.processors.total == 2 | |
Run my job only if there isn't already one of this job's instances running on it |
...
not (job.id in host.duty.id) | |
Run only one "kind" of job on a worker at the same time |
(Also see How to restrict a host to only one instance of a given kind of job, but still allow other jobs) |