Add set contains

This commit is contained in:
Alex Dadgar
2016-10-19 13:06:28 -07:00
parent 06bf6c433b
commit c97711ef34
8 changed files with 87 additions and 0 deletions

View File

@@ -419,6 +419,12 @@ The `constraint` object supports the following keys:
the attribute. This sets the operator to "regexp" and the `value`
to the regular expression.
* `set_contains` - Specifies a set contains constraint against
the attribute. This sets the operator to "set_contains" and the `value`
to the what is specified. This will check that the given attribute contains
each of the specified elements. The attribute and the list being checked are
split using commas.
* `distinct_hosts` - `distinct_hosts` accepts a boolean value and defaults to
`false`. If set, the scheduler will not co-locate any task groups on the same
machine. This can be specified as a job constraint which applies the

View File

@@ -443,6 +443,9 @@ The `Constraint` object supports the following keys:
* `regexp` - Allows the `RTarget` to be a regular expression to be matched.
* `set_contains` - Allows the `RTarget` to be a comma separated list of values
that should be contained in the LTarget's value.
* `distinct_host` - If set, the scheduler will not co-locate any task groups on the same
machine. This can be specified as a job constraint which applies the
constraint to all task groups in the job, or as a task group constraint which