Versions Compared

    Key

    • This line was added.
    • This line was removed.
    • Formatting was changed.

    ...

    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.

    RequirementSyntax
    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
    (this will allow other kinds of jobs still to run, different from reserving all job slots)

    job.kind = 'test' (or any other value, your choice...)
    not(job.kind in host.duty.kind)

    (Also see How to restrict a host to only one instance of a given kind of job, but still allow other jobs)