Skip to content

Commit 9fff9d0

Browse files
authored
Merge pull request flux-framework#412 from garlick/rfc27_free
rfc27: add R to sched.free request
2 parents fb61a77 + ad03038 commit 9fff9d0

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

spec_14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,4 +674,4 @@ References
674674

675675
.. [#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.
676676
677-
.. [#f2] `JSON Schema: A Media Type for Describing JSON Documents <https://json-schema.org/latest/json-schema-core.html>`__; H. Andrews; 2018
677+
.. [#f2] `JSON Schema: A Media Type for Describing JSON Documents <https://json-schema.org/draft/2020-12/json-schema-core>`__; H. Andrews; 2022

spec_25.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,4 +295,4 @@ References
295295

296296
.. [#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.
297297
298-
.. [#f2] `JSON Schema: A Media Type for Describing JSON Documents <https://json-schema.org/latest/json-schema-core.html>`__; H. Andrews; 2018
298+
.. [#f2] `JSON Schema: A Media Type for Describing JSON Documents <https://json-schema.org/draft/2020-12/json-schema-core>`__; H. Andrews; 2022

spec_27.rst

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -571,22 +571,37 @@ Free
571571

572572
The job manager SHALL send a ``sched.free`` request when a job that is
573573
holding resources enters CLEANUP state. The request payload consists of
574-
a JSON object with the following REQUIRED key:
574+
a JSON object with the following REQUIRED keys:
575575

576576
id
577577
(integer) job ID
578578

579+
R
580+
(object) RFC 20 resource set from which the ``scheduling`` key MAY be
581+
omitted.
582+
579583
Example:
580584

581585
.. code:: json
582586
583-
{
584-
"id": 1552593348
585-
}
586-
587-
Upon receipt of the ``sched.free`` request, the scheduler MAY look up *R*
588-
in the KVS by job ID according to the job schema (RFC 16).
589-
It SHOULD mark the job's resources as available for reuse.
587+
{
588+
"id": 1552593348,
589+
"R": {
590+
"version": 1,
591+
"execution": {
592+
"R_lite": [
593+
{ "rank": "0", "children": { "core": "0-3" } }
594+
],
595+
"nodelist": [ "test0" ],
596+
"starttime": 1710076092,
597+
"expiration": 1710076122
598+
}
599+
}
600+
}
601+
602+
603+
Upon receipt of the ``sched.free`` request, the scheduler SHOULD mark the
604+
job's resources as available for reuse.
590605

591606
Once the ``sched.free`` request has been processed by the scheduler, it SHALL
592607
send a response with payload consisting of a JSON object with the following

spell.en.pws

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,3 +490,4 @@ parsable
490490
bitmasks
491491
DoS
492492
lookups
493+
chu

0 commit comments

Comments
 (0)