-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin: track resources used per-job
Problem: The priority plugin does not keep track of the resources allocated per-job when an association submits a job, which will be needed when the plugin begins to enforce limits on how many resources an association can use across all of their running jobs. Add an increment/decrement of node+core counts in job.state.run and job.state.inactive by unpacking the jobspec of the job and calculating the number of nodes and cores assigned with the job. Increment and decrement these values in the "cur_nodes" and "cur_cores" attributes of the Association object.
- Loading branch information
Showing
2 changed files
with
80 additions
and
5 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