Skip to content

Commit

Permalink
rfc41: add new lookup flags
Browse files Browse the repository at this point in the history
Problem: The job-info.lookup RPC is missing the new
json_decode and current flags.

Document the new flags.
  • Loading branch information
chu11 committed Feb 20, 2024
1 parent 1922bac commit 2ab3bb2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
17 changes: 15 additions & 2 deletions spec_41.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,18 @@ The RPC payloads are defined as follows:

.. object:: flags

(*integer*, REQUIRED) Flags, reserved for future use. Set to zero.
(*integer*, REQUIRED) A bitfield comprised of zero or more flags:

json_decode (1)
For lookups of R or jobspec, return the field as a decoded
JSON object instead of a string. This flag has no effect on
other keys.

current (2)
For lookups of R or jobspec, return the current version. The
current version SHALL be computed by applying any
resource-update or jobspec-update events that have been posted
to the job eventlog, as described in RFC 21.

.. object:: job-info.lookup response

Expand All @@ -141,7 +152,9 @@ The RPC payloads are defined as follows:

Additional keys correspond to the keys in the request.

Values are the KVS values associated with the keys, encoded as strings.
Values are the KVS values associated with the keys. Values are
encoded as strings, except in special cases indicated by flags
in the request.

Eventlog Watch
==============
Expand Down
1 change: 1 addition & 0 deletions spell.en.pws
Original file line number Diff line number Diff line change
Expand Up @@ -489,3 +489,4 @@ userids
parsable
bitmasks
DoS
lookups

0 comments on commit 2ab3bb2

Please sign in to comment.