Skip to content

Commit

Permalink
rfc31: add RFC 31: Job Constraints Specification
Browse files Browse the repository at this point in the history
Problem: There is no defintion of how to encode job constraints in
a standardized format.

Introduce RFC 31: Job Constraints Specification, which includes a simple,
but extensible format for encoding job constraints, inspired by the
json-logic definition at https://jsonlogic.com.
  • Loading branch information
grondo committed Mar 11, 2022
1 parent 3a45d39 commit 0659145
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Table of Contents
- [28/Flux Resource Acquisition Protocol Version 1](spec_28.rst)
- [29/Hostlist Format](spec_29.rst)
- [30/Job Urgency](spec_30.rst)
- [31/Job Constraints Specification](spec_31.rst)

Build Instructions
------------------
Expand Down
1 change: 1 addition & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,4 @@ This specification describes the Flux job urgency parameter.
spec_28
spec_29
spec_30
spec_31
17 changes: 17 additions & 0 deletions spec_31.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ supported
SHALL indicate a property that MUST NOT be included in the allocated
resource set.

<<<<<<< HEAD
Future extensions
~~~~~~~~~~~~~~~~~

=======
>>>>>>> 18c8696... rfc31: add RFC 31: Job Constraints Specification
The following constraint operators MAY be supported. If a job is submitted
using these constraint operators, and the operators are not supported by
the instance, then the job SHALL be rejected with an appropriate error
Expand All @@ -97,7 +100,21 @@ message:
{ "or": [{ "properties": [ "foo" ]}, { "properties": [ "bar" ]}] }
<<<<<<< HEAD
- ``and``: Simple logical ``and``.
=======
- ``and``: Simple logical ``and``. Evaluates to true only if all ``value``
arguments are true, e.g.

.. code:: json
{ "and":
[ {"properties": [ "a" ] },
{ "not": [{ "properties": [ "foo", "bar" ]}
]
}
>>>>>>> 18c8696... rfc31: add RFC 31: Job Constraints Specification
Examples
--------
Expand Down

0 comments on commit 0659145

Please sign in to comment.