forked from flux-framework/flux-sched
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
queue-policy: APIs to reconstruct the resource state
Problem: we have an API to reconstruct the state of running-job queue state for a job, but we don’t have an interface to reconstruct the state of resource data store for the job. Add reconstruct_resource as a pure virtual method to the base queue policy class (queue_policy_base_t). Because the base queue policy classes (queue_policy_base_t and queue_policy_base_impl_t) must manage various job queues while being agnostic to the resources of jobs, this pure virtual method must be implemented by the derived classes, the queue policy layer that is aware of the resources. This virtual interface allows queue_policy_base_t to make a up-call to the methods overridden by all of the derived classes. It then makes this scheme future proof with respect to future queueing-policy implementation classes.
- Loading branch information
Showing
6 changed files
with
65 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
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