-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
job-list: support getting project/bank
Problem: For systems that add project/bank accounting information in jobspecs, it would be convenient if users could look up that information via job-list / flux-jobs. Solution: Add support to job-list to get project/bank from a job. Fixes #4697 Fixes #4698
- Loading branch information
Showing
7 changed files
with
116 additions
and
3 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
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
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
35 changes: 35 additions & 0 deletions
35
src/modules/job-list/test/jobspec/1slot_project_bank.jobspec
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"resources": [ | ||
{ | ||
"type": "slot", | ||
"count": 1, | ||
"with": [ | ||
{ | ||
"type": "core", | ||
"count": 1 | ||
} | ||
], | ||
"label": "task" | ||
} | ||
], | ||
"tasks": [ | ||
{ | ||
"command": [ | ||
"hostname" | ||
], | ||
"slot": "task", | ||
"count": { | ||
"per_slot": 1 | ||
} | ||
} | ||
], | ||
"attributes": { | ||
"system": { | ||
"duration": 0, | ||
"cwd": "/tmp/job", | ||
"project": "myproject", | ||
"bank": "mybank" | ||
} | ||
}, | ||
"version": 1 | ||
} |