Versions Compared

    Key

    • This line was added.
    • This line was removed.
    • Formatting was changed.
    Comment: Published by Scroll Versions from this space and version 1.0

    ...

    It's mostly used to say "Only run one of this kind of a job on a worker at once".  This tells the queuing system to filter out all hosts which have this kind of job already running.

    When So when you submit a job, you can do this to keep only one of your job's kind on a host:

    ...

    Code Block
    job = {
        'prototype': 'cmdline',
        'package': {'cmdline': 'sleep 30'},
        'namekind': 'testing the job kindtest',
        'kindname': 'testtesting the job kind',
        'requirements': 'not(job.kind in host.duty.kind)'
    }