-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jobspec: add level 0 support for moldable jobspecs
Problem: job-list and jobshell currently assume an integer value for the "count" key within a jobspec. While this complies with RFC 25 (Jobspec V1), this disallows users to submit a moldable jobspec that contains a dictionary instead with min/max/operator/operand with the count key. Because moldability will soon be required to enable node-exclusive scheduling for our system instance work, we need level 0 support. Modify parse_res_level() functions within job-list and jobshell where this assumption is made. Unpack the "count" key as a json_t object instead of an integer object in those functions and subsequently handle the moldable jobspec case where its value is a dictionary. Does not change semantics whatsoever since this is level-0 support. As such, the min count is used for these components when a moldable jobspec is given.
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters