Negotiator Class
- class htcondor2.Negotiator(location=None)
The negotiator client. Query and manage resource usage.
Consult User Priorities and Negotiation before using these functions.
- Parameters
location (Optional[ClassAd]) – A ClassAd with a
MyAddressattribute, such as might be returned byhtcondor2.Collector.locate().Nonemeans the default pool negotiator.
- deleteUser(user) None
Delete all records of an accounting principal from the negotiator’s accounting.
- Parameters
user (str) – A fully-qualifed (
user@domain) accounting principal.
- getPriorities(rollup=False) List[ClassAd]
Retrieve the pool accounting information as a list of accounting ClassAds.
- getResourceUsage(user) List[ClassAd]
Retrieve the resources (slots) assigned to the specificied accounting principal as a list of ClassAds. The names of the attributes and their types are currently undocumented.
- Parameters
user (str) – A fully-qualifed (
user@domain) accounting principal.
- resetAllUsage()
Set the accumulated usage of all accounting principals to zero.
- resetUsage(user) None
Set the accumulated usage of the specified accounting principal to zero.
- Parameters
user (str) – A fully-qualifed (
user@domain) accounting principal.