Skip to content

Commit 0a17a29

Browse files
authored
Merge pull request #321 from grondo/issue#319
rfc14,25: add example and references for constraints, dependencies
2 parents 2230b9c + a80196f commit 0a17a29

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

data/spec_14/use_case_2.9.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 999
2+
resources:
3+
- type: slot
4+
count: 1
5+
label: default
6+
with:
7+
- type: node
8+
count: 1
9+
tasks:
10+
- command: [ "flux", "start" ]
11+
slot: default
12+
count:
13+
per_slot: 1
14+
attributes:
15+
system:
16+
duration: 3600.
17+
cwd: "/home/flux"
18+
constraints:
19+
properties:
20+
- amd-mi50

spec_14.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Related Standards
3737

3838
- :doc:`26/Job Dependency Specification <spec_26>`
3939

40+
- :doc:`31/Job Constraints Specification <spec_31>`
41+
4042

4143
Goals
4244
-----
@@ -654,6 +656,17 @@ Jobspec YAML
654656
.. literalinclude:: data/spec_14/use_case_2.8.yaml
655657
:language: yaml
656658

659+
Use Case 2.9
660+
Specify constraints based on properties
661+
662+
Specific Example
663+
Require that allocated resources have the ``amd-mi50`` property
664+
665+
Jobspec YAML
666+
.. literalinclude:: data/spec_14/use_case_2.9.yaml
667+
:language: yaml
668+
669+
657670
.. [#f1] `YAML Ain’t Markup Language (YAML) Version 1.1 <http://yaml.org/spec/1.1/current.html>`__, O. Ben-Kiki, C. Evans, B. Ingerson, 2004.
658671
659672
.. [#f2] `JSON Schema: A Media Type for Describing JSON Documents <https://json-schema.org/latest/json-schema-core.html>`__; H. Andrews; 2018

spec_25.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Related Standards
3838

3939
- :doc:`20/Resource Set Specification Version 1 <spec_20>`
4040

41+
- :doc:`26/Job Dependency Specification <spec_26>`
42+
43+
- :doc:`31/Job Constraints Specification <spec_31>`
4144

4245
Goals
4346
-----
@@ -172,6 +175,10 @@ definitions can be found in RFC14. Values MAY have any valid YAML type.
172175

173176
- cwd
174177

178+
- dependencies
179+
180+
- constraints
181+
175182
Most system attributes are optional, but the ``duration`` attribute is required in
176183
jobspec V1.
177184

0 commit comments

Comments
 (0)