Skip to content

Commit

Permalink
Merge pull request #412 from garlick/rfc27_free
Browse files Browse the repository at this point in the history
rfc27: add R to sched.free request
  • Loading branch information
mergify[bot] authored Mar 11, 2024
2 parents fb61a77 + ad03038 commit 9fff9d0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion spec_14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -674,4 +674,4 @@ References

.. [#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.
.. [#f2] `JSON Schema: A Media Type for Describing JSON Documents <https://json-schema.org/latest/json-schema-core.html>`__; H. Andrews; 2018
.. [#f2] `JSON Schema: A Media Type for Describing JSON Documents <https://json-schema.org/draft/2020-12/json-schema-core>`__; H. Andrews; 2022
2 changes: 1 addition & 1 deletion spec_25.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@ References

.. [#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.
.. [#f2] `JSON Schema: A Media Type for Describing JSON Documents <https://json-schema.org/latest/json-schema-core.html>`__; H. Andrews; 2018
.. [#f2] `JSON Schema: A Media Type for Describing JSON Documents <https://json-schema.org/draft/2020-12/json-schema-core>`__; H. Andrews; 2022
31 changes: 23 additions & 8 deletions spec_27.rst
Original file line number Diff line number Diff line change
Expand Up @@ -571,22 +571,37 @@ Free

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

id
(integer) job ID

R
(object) RFC 20 resource set from which the ``scheduling`` key MAY be
omitted.

Example:

.. code:: json
{
"id": 1552593348
}
Upon receipt of the ``sched.free`` request, the scheduler MAY look up *R*
in the KVS by job ID according to the job schema (RFC 16).
It SHOULD mark the job's resources as available for reuse.
{
"id": 1552593348,
"R": {
"version": 1,
"execution": {
"R_lite": [
{ "rank": "0", "children": { "core": "0-3" } }
],
"nodelist": [ "test0" ],
"starttime": 1710076092,
"expiration": 1710076122
}
}
}
Upon receipt of the ``sched.free`` request, the scheduler SHOULD mark the
job's resources as available for reuse.

Once the ``sched.free`` request has been processed by the scheduler, it SHALL
send a response with payload consisting of a JSON object with the following
Expand Down
1 change: 1 addition & 0 deletions spell.en.pws
Original file line number Diff line number Diff line change
Expand Up @@ -490,3 +490,4 @@ parsable
bitmasks
DoS
lookups
chu

0 comments on commit 9fff9d0

Please sign in to comment.