-
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.
Add support for the priority plugin to keep count of a user's active jobs and reject jobs that are submitted while the user already has their max number of jobs currently active. The number of active jobs is kept track through a map-of-maps data structure containing all of the users in the flux-accounting DB along with their separate bank/max_jobs limits. When a job enters job.validate, their max_jobs counter is incremented and is decremented when the job enters job.state.inactive. If a user already has their max number of active jobs running and tries to submit a new job, the new job will be rejected with an error message.
- Loading branch information
Showing
1 changed file
with
62 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