Skip to content

Commit

Permalink
rfc27: add optional partial-ok hello flag
Browse files Browse the repository at this point in the history
Problem: there is no way for the scheduler to indicate that it
can handle the new allocated key in hello responses.

The scheduler can put {"partial-ok":true} in the hello request
to indicate this.
  • Loading branch information
garlick committed Nov 15, 2024
1 parent 901ca24 commit 16c5c4c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions spec_27.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,19 @@ Hello
=====

Before any other RPCs are sent to the job manager, the scheduler SHALL
send an empty request to ``job-manager.sched-hello`` with the
FLUX_MSGFLAG_STREAMING flag set. The job manager SHALL send one
response message for each job with allocated resources. Each response
payload SHALL consist of a JSON object with the following REQUIRED
keys:
send a request to ``job-manager.sched-hello`` with the FLUX_MSGFLAG_STREAMING
flag set. The request payload SHALL either be empty or consist of a JSON
object with the following OPTIONAL keys:

partial-ok
(boolean) The scheduler SHALL set this flag to ``true`` if it can handle
the ``allocated`` key in hello responses. That is, it can process
jobs with partially released resource sets. If this key is missing it
SHALL be interpreted as ``false``.

The job manager SHALL send one response message for each job with
allocated resources. Each response payload SHALL consist of a JSON object
with the following REQUIRED keys:

id
(integer) job ID
Expand Down

0 comments on commit 16c5c4c

Please sign in to comment.