...
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.
So when 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'},
'kindname': 'testtesting the job kind',
'namekind': 'testing the job kindtest',
'requirements': 'not(job.kind in host.duty.kind)'
} |