Skip to content

Commit

Permalink
rfc27: add R to sched.free request
Browse files Browse the repository at this point in the history
Problem: flux-framework/flux-core#5783 adds R to the sched.free
request to avoid an extra lookup.

Add R to the sched.free request payload definition in RFC 27.
  • Loading branch information
garlick committed Mar 11, 2024
1 parent fb61a77 commit 03c64cd
Showing 1 changed file with 23 additions and 8 deletions.
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

0 comments on commit 03c64cd

Please sign in to comment.